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 7.0KB

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