archetype-resources.pom.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webdriver-junit-archetype
Show all versions of webdriver-junit-archetype
Archetype for a Maven project intended to develop tests with Selenium WebDriver and JUnit
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <packaging>jar</packaging> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <groupId>ru.stqa.selenium</groupId> <artifactId>webdriver-factory</artifactId> <version>4.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.4.0</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>htmlunit-driver</artifactId> <version>2.26</version> </dependency> <dependency> <groupId>com.codeborne</groupId> <artifactId>phantomjsdriver</artifactId> <version>1.4.1</version> <exclusions> <exclusion> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> </exclusion> <exclusion> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-remote-driver</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <includes> <include>**/*TestSuite.java</include> </includes> <systemPropertyVariables> <application.properties>/application.properties</application.properties> </systemPropertyVariables> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <!-- profiles --> <profiles> <!-- browsers --> <profile> <id>firefox</id> <properties> <capabilities>/firefox.capabilities</capabilities> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>chrome</id> <properties> <capabilities>/chrome.capabilities</capabilities> </properties> </profile> <profile> <id>ie</id> <properties> <capabilities>/ie.capabilities</capabilities> </properties> </profile> <profile> <id>safari</id> <properties> <capabilities>/safari.capabilities</capabilities> </properties> </profile> <profile> <id>phantomjs</id> <properties> <capabilities>/phantomjs.capabilities</capabilities> </properties> </profile> <profile> <id>opera</id> <properties> <capabilities>/opera.capabilities</capabilities> </properties> </profile> <profile> <id>htmlunit</id> <properties> <capabilities>/htmlunit.capabilities</capabilities> </properties> </profile> <!-- environments --> <profile> <id>localhost</id> <properties> <site.url>http://localhost/</site.url> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>devhost</id> <properties> <site.url>http://devhost/</site.url> </properties> </profile> <profile> <id>testhost</id> <properties> <site.url>http://testhost/</site.url> </properties> </profile> <profile> <id>prodhost</id> <properties> <site.url>http://prodhost.com/</site.url> </properties> </profile> <!-- grid --> <profile> <id>nogrid</id> <properties> <grid.url></grid.url> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>grid</id> <properties> <grid.url>http://localhost:4444/wd/hub/</grid.url> </properties> </profile> </profiles> </project>