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-testng-archetype
Show all versions of webdriver-testng-archetype
Archetype for a Maven project intended to develop tests with Selenium WebDriver and TestNG
<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.11</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.8</version> </dependency> <dependency> <groupId>ru.stqa.selenium</groupId> <artifactId>webdriver-factory</artifactId> <version>1.1.43</version> </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.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> </suiteXmlFiles> <systemPropertyVariables> <application.properties>/application.properties</application.properties> </systemPropertyVariables> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</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>