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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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.sonatype.oss</groupId>
  5. <artifactId>oss-parent</artifactId>
  6. <version>7</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>org.pf4j</groupId>
  10. <artifactId>pf4j-parent</artifactId>
  11. <version>2.6.0-SNAPSHOT</version>
  12. <packaging>pom</packaging>
  13. <name>PF4J Parent</name>
  14. <description>Plugin Framework for Java</description>
  15. <licenses>
  16. <license>
  17. <name>The Apache Software License, Version 2.0</name>
  18. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  19. <distribution>repo</distribution>
  20. </license>
  21. </licenses>
  22. <scm>
  23. <connection>scm:git:https://github.com/pf4j/pf4j.git</connection>
  24. <developerConnection>scm:git:https://github.com/pf4j/pf4j.git</developerConnection>
  25. <url>git@github.com/pf4j/pf4j.git</url>
  26. <tag>HEAD</tag>
  27. </scm>
  28. <distributionManagement>
  29. <snapshotRepository>
  30. <id>ossrh</id>
  31. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  32. </snapshotRepository>
  33. <repository>
  34. <id>ossrh</id>
  35. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  36. </repository>
  37. </distributionManagement>
  38. <properties>
  39. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  40. <java.version>1.7</java.version>
  41. <slf4j.version>1.7.25</slf4j.version>
  42. <junit.version>4.12</junit.version>
  43. <mockito.version>2.0.28-beta</mockito.version>
  44. <cobertura.version>2.7</cobertura.version>
  45. <coveralls.version>3.1.0</coveralls.version>
  46. <javadoc.disabled>false</javadoc.disabled>
  47. <deploy.disabled>false</deploy.disabled>
  48. <source.disabled>false</source.disabled>
  49. </properties>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <version>2.3.2</version>
  56. <configuration>
  57. <source>${java.version}</source>
  58. <target>${java.version}</target>
  59. <optimize>true</optimize>
  60. </configuration>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-javadoc-plugin</artifactId>
  65. <version>2.8</version>
  66. <configuration>
  67. <skip>${javadoc.disabled}</skip>
  68. </configuration>
  69. <executions>
  70. <execution>
  71. <goals>
  72. <goal>jar</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-source-plugin</artifactId>
  80. <version>2.2</version>
  81. <configuration>
  82. <skipSource>${source.disabled}</skipSource>
  83. </configuration>
  84. <executions>
  85. <execution>
  86. <goals>
  87. <goal>jar</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-deploy-plugin</artifactId>
  95. <version>2.8.1</version>
  96. <configuration>
  97. <skip>${deploy.disabled}</skip>
  98. </configuration>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-release-plugin</artifactId>
  103. <version>2.5.3</version>
  104. <configuration>
  105. <goals>deploy</goals>
  106. <autoVersionSubmodules>true</autoVersionSubmodules>
  107. <tagNameFormat>release-@{project.version}</tagNameFormat>
  108. </configuration>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-resources-plugin</artifactId>
  113. <version>2.4.3</version>
  114. </plugin>
  115. <plugin>
  116. <artifactId>maven-jar-plugin</artifactId>
  117. <version>2.4</version>
  118. <configuration>
  119. <archive>
  120. <manifest>
  121. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  122. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  123. </manifest>
  124. </archive>
  125. </configuration>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. <modules>
  130. <module>pf4j</module>
  131. <module>demo</module>
  132. </modules>
  133. <profiles>
  134. <profile>
  135. <id>jdk8-build</id>
  136. <activation>
  137. <jdk>[1.8,)</jdk>
  138. </activation>
  139. <properties>
  140. <additionalparam>-Xdoclint:none</additionalparam>
  141. </properties>
  142. </profile>
  143. <profile>
  144. <id>travis</id>
  145. <activation>
  146. <property>
  147. <name>env.TRAVIS</name>
  148. <value>true</value>
  149. </property>
  150. </activation>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <artifactId>cobertura-maven-plugin</artifactId>
  156. <version>${cobertura.version}</version>
  157. <configuration>
  158. <formats>
  159. <format>xml</format>
  160. </formats>
  161. </configuration>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.eluder.coveralls</groupId>
  165. <artifactId>coveralls-maven-plugin</artifactId>
  166. <version>${coveralls.version}</version>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. </profile>
  171. <profile>
  172. <id>release-sign-artifacts</id>
  173. <activation>
  174. <property>
  175. <name>performRelease</name>
  176. <value>true</value>
  177. </property>
  178. </activation>
  179. <build>
  180. <plugins>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-gpg-plugin</artifactId>
  184. <executions>
  185. <execution>
  186. <id>sign-artifacts</id>
  187. <phase>verify</phase>
  188. <goals>
  189. <goal>sign</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </profile>
  197. </profiles>
  198. </project>