You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0"?>
  2. <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">
  3. <parent>
  4. <groupId>org.pf4j</groupId>
  5. <artifactId>pf4j-parent</artifactId>
  6. <version>3.11.0-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j</artifactId>
  10. <version>3.11.0-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>PF4J</name>
  13. <description>Plugin Framework for Java</description>
  14. <properties>
  15. <sonar.projectKey>pf4j_pf4j</sonar.projectKey>
  16. </properties>
  17. <build>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.codehaus.mojo</groupId>
  21. <artifactId>templating-maven-plugin</artifactId>
  22. <executions>
  23. <execution>
  24. <id>filter-src</id>
  25. <goals>
  26. <goal>filter-sources</goal>
  27. </goals>
  28. </execution>
  29. </executions>
  30. </plugin>
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-compiler-plugin</artifactId>
  34. <configuration>
  35. <compilerArgument>-proc:none</compilerArgument>
  36. <!-- Only required when JAVA_HOME isn't at least Java 9 and when haven't configured the maven-toolchains-plugin -->
  37. <jdkToolchain>
  38. <version>9</version>
  39. </jdkToolchain>
  40. </configuration>
  41. <executions>
  42. <!-- compile everything for Java 8 except the module-info.java -->
  43. <execution>
  44. <id>default-compile</id>
  45. <goals>
  46. <goal>compile</goal>
  47. </goals>
  48. <configuration>
  49. <excludes>
  50. <exclude>module-info.java</exclude>
  51. </excludes>
  52. </configuration>
  53. </execution>
  54. <!-- compile module-info.java for Java 9+ -->
  55. <execution>
  56. <id>java9-compile</id>
  57. <goals>
  58. <goal>compile</goal>
  59. </goals>
  60. <configuration>
  61. <release>9</release>
  62. <multiReleaseOutput>true</multiReleaseOutput>
  63. <includes>
  64. <include>module-info.java</include>
  65. </includes>
  66. </configuration>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-jar-plugin</artifactId>
  73. <configuration>
  74. <archive>
  75. <manifestEntries>
  76. <Multi-Release>true</Multi-Release>
  77. </manifestEntries>
  78. </archive>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>test-jar</goal>
  84. </goals>
  85. <configuration>
  86. <includes>
  87. <inculde>org/pf4j/test/*</inculde>
  88. </includes>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.jacoco</groupId>
  95. <artifactId>jacoco-maven-plugin</artifactId>
  96. <version>0.8.11</version>
  97. <executions>
  98. <execution>
  99. <id>prepare-agent</id>
  100. <goals>
  101. <goal>prepare-agent</goal>
  102. </goals>
  103. </execution>
  104. <execution>
  105. <id>report</id>
  106. <phase>test</phase>
  107. <goals>
  108. <goal>report</goal>
  109. </goals>
  110. <configuration>
  111. <formats>
  112. <format>XML</format>
  113. </formats>
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. <dependencies>
  121. <dependency>
  122. <groupId>org.slf4j</groupId>
  123. <artifactId>slf4j-api</artifactId>
  124. <version>${slf4j.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.github.zafarkhaja</groupId>
  128. <artifactId>java-semver</artifactId>
  129. <version>0.10.2</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.ow2.asm</groupId>
  133. <artifactId>asm</artifactId>
  134. <version>${asm.version}</version>
  135. <optional>true</optional>
  136. </dependency>
  137. <!-- Logging -->
  138. <dependency>
  139. <groupId>org.slf4j</groupId>
  140. <artifactId>slf4j-simple</artifactId>
  141. <version>${slf4j.version}</version>
  142. <scope>test</scope>
  143. </dependency>
  144. <!-- Testing -->
  145. <dependency>
  146. <groupId>org.hamcrest</groupId>
  147. <artifactId>hamcrest</artifactId>
  148. <version>${hamcrest.version}</version>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <!--
  153. An empty artifact, required while JUnit 4 is on the classpath to override its
  154. dependency on hamcrest.
  155. See http://hamcrest.org/JavaHamcrest/distributables#upgrading-from-hamcrest-1x
  156. -->
  157. <groupId>org.hamcrest</groupId>
  158. <artifactId>hamcrest-core</artifactId>
  159. <version>${hamcrest.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.junit.jupiter</groupId>
  164. <artifactId>junit-jupiter-engine</artifactId>
  165. <version>${junit.version}</version>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.mockito</groupId>
  170. <artifactId>mockito-core</artifactId>
  171. <version>${mockito.version}</version>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.google.testing.compile</groupId>
  176. <artifactId>compile-testing</artifactId>
  177. <version>0.21.0</version>
  178. <scope>test</scope>
  179. </dependency>
  180. </dependencies>
  181. </project>