参考来源:[https://search.maven.org/remotecontent?filepath=io/appium/java-client/3.3.0/java-client-3.3.0.pom](https://search.maven.org/remotecontent?filepath=io/appium/java-client/3.3.0/java-client-3.3.0.pom)

    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>UITest</groupId>
    6. <artifactId>UITest</artifactId>
    7. <version>0.0.1-SNAPSHOT</version>
    8. <name>AutoUITest</name>
    9. <description>app自动化测试项目工程</description>
    10. <dependencies>
    11. <dependency>
    12. <groupId>io.appium</groupId>
    13. <artifactId>java-client</artifactId>
    14. <version>3.3.0</version>
    15. </dependency>
    16. <dependency>
    17. <groupId>com.google.code.gson</groupId>
    18. <artifactId>gson</artifactId>
    19. <version>2.2.4</version>
    20. </dependency>
    21. <dependency>
    22. <groupId>org.seleniumhq.selenium</groupId>
    23. <artifactId>selenium-java</artifactId>
    24. <version>2.48.0</version>
    25. </dependency>
    26. <dependency>
    27. <groupId>org.apache.httpcomponents</groupId>
    28. <artifactId>httpclient</artifactId>
    29. <version>4.3.3</version>
    30. </dependency>
    31. <dependency>
    32. <groupId>com.google.guava</groupId>
    33. <artifactId>guava</artifactId>
    34. <version>17.0</version>
    35. </dependency>
    36. <dependency>
    37. <groupId>cglib</groupId>
    38. <artifactId>cglib</artifactId>
    39. <version>3.1</version>
    40. </dependency>
    41. <dependency>
    42. <groupId>commons-validator</groupId>
    43. <artifactId>commons-validator</artifactId>
    44. <version>1.4.1</version>
    45. </dependency>
    46. <dependency>
    47. <groupId>mysql</groupId>
    48. <artifactId>mysql-connector-java</artifactId>
    49. <version>5.1.25</version>
    50. </dependency>
    51. <dependency>
    52. <groupId>net.sourceforge.jexcelapi</groupId>
    53. <artifactId>jxl</artifactId>
    54. <version>2.6.10</version>
    55. </dependency>
    56. <dependency>
    57. <groupId>org.testng</groupId>
    58. <artifactId>testng</artifactId>
    59. <version>6.9.8</version>
    60. </dependency>
    61. <dependency>
    62. <groupId>org.jetbrains</groupId>
    63. <artifactId>annotations-java5</artifactId>
    64. <version>15.0</version>
    65. </dependency>
    66. </dependencies>
    67. <distributionManagement>
    68. <snapshotRepository>
    69. <id>ossrh</id>
    70. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    71. </snapshotRepository>
    72. <repository>
    73. <id>ossrh</id>
    74. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    75. </repository>
    76. </distributionManagement>
    77. <build>
    78. <resources>
    79. <resource>
    80. <directory>src/main/resources</directory>
    81. </resource>
    82. </resources>
    83. <plugins>
    84. <plugin>
    85. <groupId>org.apache.maven.plugins</groupId>
    86. <artifactId>maven-source-plugin</artifactId>
    87. <version>2.2.1</version>
    88. </plugin>
    89. <plugin>
    90. <groupId>org.apache.maven.plugins</groupId>
    91. <artifactId>maven-javadoc-plugin</artifactId>
    92. <version>2.9.1</version>
    93. </plugin>
    94. <plugin>
    95. <groupId>org.apache.maven.plugins</groupId>
    96. <artifactId>maven-compiler-plugin</artifactId>
    97. <version>3.3</version>
    98. <configuration>
    99. <source>1.7</source>
    100. <target>1.7</target>
    101. <compilerId>eclipse</compilerId>
    102. </configuration>
    103. <dependencies>
    104. <dependency>
    105. <groupId>org.codehaus.plexus</groupId>
    106. <artifactId>plexus-compiler-eclipse</artifactId>
    107. <version>2.5</version>
    108. </dependency>
    109. </dependencies>
    110. </plugin>
    111. <plugin>
    112. <groupId>org.apache.maven.plugins</groupId>
    113. <artifactId>maven-surefire-plugin</artifactId>
    114. <version>2.18.1</version>
    115. <configuration>
    116. <!--
    117. 变量传递,读取不同的参数,执行不同的测试环境xml
    118. 这样做是为了避免处理线程安全,而大量去修改代码
    119. -->
    120. <suiteXmlFiles>
    121. <suiteXmlFile>${xmlFileName}</suiteXmlFile>
    122. </suiteXmlFiles>
    123. <!--
    124. 配置多(2个)线程,执行不同的测试环境的xml
    125. 如果多线程执行,需要解决线程安全的问题
    126. -->
    127. <!--
    128. <suiteXmlFiles>
    129. <suiteXmlFile>testng-android.xml</suiteXmlFile>
    130. <suiteXmlFile>testng-ios.xml</suiteXmlFile>
    131. </suiteXmlFiles>
    132. <properties>
    133. <property>
    134. <name>suitethreadpoolsize</name>
    135. <value>2</value>
    136. </property>
    137. </properties>
    138. -->
    139. </configuration>
    140. </plugin>
    141. </plugins>
    142. </build>
    143. </project>