Ardesco / driver-binary-downloader-maven-plugin

A Maven plugin that will download the WebDriver stand alone server executables for use in your mavenised Selenium project.
Apache License 2.0
92 stars 52 forks source link

Fixes #47 - Adds ability to read repository map from dependencies. #54

Closed haroon-sheikh closed 7 years ago

haroon-sheikh commented 7 years ago

You're now able to have something like this:

<plugin>
    <groupId>com.lazerycode.selenium</groupId>
    <artifactId>driver-binary-downloader-maven-plugin</artifactId>
    <version>${lazerycode.selenium.version}</version>
    <configuration>
        <rootStandaloneServerDirectory>${browser.location}</rootStandaloneServerDirectory>
        <downloadedZipFileDirectory>${browser.location}/zips</downloadedZipFileDirectory>
        <customRepositoryMap>/config/RepositoryMap.xml</customRepositoryMap>
        <onlyGetDriversForHostOperatingSystem>true</onlyGetDriversForHostOperatingSystem>
        <throwExceptionIfSpecifiedVersionIsNotFound>true</throwExceptionIfSpecifiedVersionIsNotFound>
        <fileDownloadRetryAttempts>3</fileDownloadRetryAttempts>
        <fileDownloadConnectTimeout>20000</fileDownloadConnectTimeout>
        <fileDownloadReadTimeout>20000</fileDownloadReadTimeout>
        <checkFileHashes>true</checkFileHashes>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>com.mycompany.gauge</groupId>
            <artifactId>mycompany-buildtools</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <goals>
                <goal>selenium</goal>
            </goals>
        </execution>
    </executions>
</plugin>