pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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>openclover</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.openclover</groupId>
  17. <artifactId>clover-maven-plugin</artifactId>
  18. <version>4.4.1</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.openclover</groupId>
  22. <artifactId>clover</artifactId>
  23. <version>4.4.1</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>junit</groupId>
  27. <artifactId>junit</artifactId>
  28. <version>4.12</version>
  29. <scope>test</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.dom4j</groupId>
  33. <artifactId>dom4j</artifactId>
  34. <version>2.1.1</version>
  35. </dependency>
  36. <!-- https://mvnrepository.com/artifact/org.json/json -->
  37. <dependency>
  38. <groupId>org.json</groupId>
  39. <artifactId>json</artifactId>
  40. <version>20210307</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>fastjson</artifactId>
  45. <version>1.2.83</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>ca.mcgill.sable</groupId>
  49. <artifactId>soot</artifactId>
  50. <version>4.1.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.slf4j</groupId>
  54. <artifactId>slf4j-api</artifactId>
  55. <version>1.7.36</version> <!-- 请根据需要选择合适的版本 -->
  56. </dependency>
  57. <dependency>
  58. <groupId>org.slf4j</groupId>
  59. <artifactId>slf4j-simple</artifactId>
  60. <version>1.7.36</version> <!-- 请根据需要选择合适的版本 -->
  61. </dependency>
  62. <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin -->
  63. <dependency>
  64. <groupId>org.jacoco</groupId>
  65. <artifactId>jacoco-maven-plugin</artifactId>
  66. <version>0.8.7</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <version>1.18.28</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.jsoup</groupId>
  75. <artifactId>jsoup</artifactId>
  76. <version>1.8.3</version>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.jacoco</groupId>
  83. <artifactId>jacoco-maven-plugin</artifactId>
  84. <version>0.8.6</version>
  85. <executions>
  86. <execution>
  87. <id>prepare-agent</id>
  88. <goals>
  89. <goal>prepare-agent</goal>
  90. </goals>
  91. </execution>
  92. <execution>
  93. <id>report</id>
  94. <phase>test</phase>
  95. <goals>
  96. <goal>report</goal>
  97. </goals>
  98. <configuration>
  99. <!--定义输出的文件夹-->
  100. <outputDirectory>target/jacoco-report</outputDirectory>
  101. </configuration>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.openclover</groupId>
  107. <artifactId>clover-maven-plugin</artifactId>
  108. <version>4.4.1</version>
  109. <executions>
  110. <execution>
  111. <phase>generate-sources</phase>
  112. <goals>
  113. <goal>instrument</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. <configuration>
  118. <generatePdf>false</generatePdf>
  119. <generateXml>true</generateXml>
  120. <generateHtml>true</generateHtml>
  121. <generateJson>true</generateJson>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <artifactId>maven-surefire-plugin</artifactId>
  126. <version>2.5</version>
  127. </plugin>
  128. <!-- <plugin>-->
  129. <!-- <artifactId>maven-failsafe-plugin</artifactId>-->
  130. <!-- <version>2.2</version>-->
  131. <!-- </plugin>-->
  132. </plugins>
  133. </build>
  134. <reporting>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.openclover</groupId>
  138. <artifactId>clover-maven-plugin</artifactId>
  139. </plugin>
  140. </plugins>
  141. </reporting>
  142. </project>