pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.example</groupId>
  7. <artifactId>UniappApi</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>1.8</maven.compiler.source>
  11. <maven.compiler.target>1.8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>io.rest-assured</groupId>
  17. <artifactId>rest-assured</artifactId>
  18. <version>5.3.0</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.testng</groupId>
  22. <artifactId>testng</artifactId>
  23. <version>6.10</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.fasterxml.jackson.core</groupId>
  27. <artifactId>jackson-databind</artifactId>
  28. <version>2.15.2</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.hamcrest</groupId>
  32. <artifactId>hamcrest-core</artifactId>
  33. <version>2.2</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.jayway.jsonpath</groupId>
  37. <artifactId>json-path</artifactId>
  38. <version>2.4.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>io.qameta.allure</groupId>
  42. <artifactId>allure-testng</artifactId>
  43. <version>2.24.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba.fastjson2</groupId>
  47. <artifactId>fastjson2</artifactId>
  48. <version>2.0.50</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.fasterxml.jackson.dataformat</groupId>
  52. <artifactId>jackson-dataformat-yaml</artifactId>
  53. <version>2.14.2</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>de.sstoehr</groupId>
  57. <artifactId>har-reader</artifactId>
  58. <version>2.2.1</version>
  59. </dependency>
  60. <!-- mysql数据库驱动 -->
  61. <dependency>
  62. <groupId>mysql</groupId>
  63. <artifactId>mysql-connector-java</artifactId>
  64. <version>8.0.21</version>
  65. </dependency>
  66. <!-- 数据库链接工具包 -->
  67. <dependency>
  68. <groupId>commons-dbutils</groupId>
  69. <artifactId>commons-dbutils</artifactId>
  70. <version>1.6</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.github.javafaker</groupId>
  74. <artifactId>javafaker</artifactId>
  75. <version>1.0.2</version>
  76. </dependency>
  77. <!-- <dependency>-->
  78. <!-- <groupId>org.slf4j</groupId>-->
  79. <!-- <artifactId>slf4j-nop</artifactId>-->
  80. <!-- <version>2.0.7</version>-->
  81. <!-- </dependency>-->
  82. </dependencies>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>3.8.1</version>
  89. <configuration>
  90. <source>1.8</source>
  91. <target>1.8</target>
  92. </configuration>
  93. </plugin>
  94. <plugin>
  95. <!-- maven.surefire-plugin 配合testng/Junit执行测试用例的maven插件 -->
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-surefire-plugin</artifactId>
  98. <version>3.1.0</version>
  99. <configuration>
  100. <!-- 测试失败,是否忽略并继续测试 -->
  101. <testFailureIgnore>true</testFailureIgnore>
  102. <suiteXmlFiles>
  103. <!-- testng配置文件名称 -->
  104. <suiteXmlfile>src/main/resources/testng.xml</suiteXmlfile>
  105. </suiteXmlFiles>
  106. <!-- 设置参数命令行 -->
  107. <argLine>
  108. <!-- UTF-8编码 -->
  109. -Dfile.encoding=UTF-8
  110. <!-- 配置拦截器 -->
  111. -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/1.9.2/aspectjweaver-1.9.2.jar"
  112. </argLine>
  113. <systemProperties>
  114. <property>
  115. <!-- 配置allure结果存储路径 -->
  116. <name>allure.results.directory</name>
  117. <value>${project.build.directory}/allure-results</value>
  118. </property>
  119. </systemProperties>
  120. </configuration>
  121. <dependencies>
  122. <!-- aspectjweaver maven坐标 -->
  123. <dependency>
  124. <groupId>org.aspectj</groupId>
  125. <artifactId>aspectjweaver</artifactId>
  126. <version>1.9.19</version>
  127. <!--<scope>runtime</scope>-->
  128. </dependency>
  129. </dependencies>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>