sample code java pom.xml
pom.xml
1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 <groupId>com.saucelabs</groupId> 6 <artifactId>sauce_appium_junit</artifactId> 7 <version>0.0.1-SNAPSHOT</version> 8 <name>sauce_appium_junit</name> 9 <description>Sample Appium tests using JUnit</description> 10 <dependencies> 11 <dependency> 12 <groupId>junit</groupId> 13 <artifactId>junit</artifactId> 14 <version>4.11</version> 15 <scope>test</scope> 16 </dependency> 17 <dependency> 18 <groupId>io.appium</groupId> 19 <artifactId>java-client</artifactId> 20 <version>4.0.0</version> 21 </dependency> 22 <dependency> 23 <groupId>com.googlecode.json-simple</groupId> 24 <artifactId>json-simple</artifactId> 25 <version>1.1</version> 26 <scope>test</scope> 27 </dependency> 28 <dependency> 29 <groupId>commons-lang</groupId> 30 <artifactId>commons-lang</artifactId> 31 <version>2.6</version> 32 <scope>test</scope> 33 </dependency> 34 <!-- Includes the Sauce JUnit helper libraries --> 35 <dependency> 36 <groupId>com.saucelabs</groupId> 37 <artifactId>sauce_junit</artifactId> 38 <version>2.1.3</version> 39 <scope>test</scope> 40 </dependency> 41 <dependency> 42 <groupId>com.google.code.gson</groupId> 43 <artifactId>gson</artifactId> 44 <version>2.2.4</version> 45 </dependency> 46 </dependencies> 47 48 <build> 49 <plugins> 50 <plugin> 51 <groupId>org.apache.maven.plugins</groupId> 52 <artifactId>maven-surefire-plugin</artifactId> 53 </plugin> 54 <plugin> 55 <artifactId>maven-compiler-plugin</artifactId> 56 <configuration> 57 <source>1.7</source> 58 <target>1.7</target> 59 </configuration> 60 </plugin> 61 </plugins> 62 </build> 63 64 <repositories> 65 <repository> 66 <id>saucelabs-repository</id> 67 <url>https://repository-saucelabs.forge.cloudbees.com/release</url> 68 <releases> 69 <enabled>true</enabled> 70 </releases> 71 <snapshots> 72 <enabled>true</enabled> 73 </snapshots> 74 </repository> 75 </repositories> 76 77 78 </project>