jvnet-parent-4.pom 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (c) 2007-2012 Sonatype, Inc. All rights reserved.
  4. ~
  5. ~ This program is licensed to you under the Apache License Version 2.0,
  6. ~ and you may not use this file except in compliance with the Apache License Version 2.0.
  7. ~ You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
  8. ~
  9. ~ Unless required by applicable law or agreed to in writing,
  10. ~ software distributed under the Apache License Version 2.0 is distributed on an
  11. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. ~ See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
  13. -->
  14. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>net.java</groupId>
  18. <artifactId>jvnet-parent</artifactId>
  19. <version>4</version>
  20. <packaging>pom</packaging>
  21. <name>Java.net Parent</name>
  22. <url>http://java.net/</url>
  23. <description>Java.net - The Source for Java Technology Collaboration</description>
  24. <scm>
  25. <connection>scm:git:git@github.com:sonatype/jvnet-parent.git</connection>
  26. <developerConnection>scm:git:git@github.com:sonatype/jvnet-parent.git</developerConnection>
  27. <url>https://github.com/sonatype/jvnet-parent</url>
  28. </scm>
  29. <distributionManagement>
  30. <snapshotRepository>
  31. <id>jvnet-nexus-snapshots</id>
  32. <name>Java.net Nexus Snapshots Repository</name>
  33. <url>${jvnetDistMgmtSnapshotsUrl}</url>
  34. </snapshotRepository>
  35. <repository>
  36. <id>jvnet-nexus-staging</id>
  37. <name>Java.net Nexus Staging Repository</name>
  38. <url>https://maven.java.net/service/local/staging/deploy/maven2/</url>
  39. </repository>
  40. </distributionManagement>
  41. <build>
  42. <pluginManagement>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-release-plugin</artifactId>
  47. <configuration>
  48. <mavenExecutorId>forked-path</mavenExecutorId>
  49. <useReleaseProfile>false</useReleaseProfile>
  50. <arguments>-Pjvnet-release ${release.arguments}</arguments>
  51. </configuration>
  52. </plugin>
  53. </plugins>
  54. </pluginManagement>
  55. </build>
  56. <properties>
  57. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  58. <jvnetDistMgmtSnapshotsUrl>https://maven.java.net/content/repositories/snapshots/</jvnetDistMgmtSnapshotsUrl>
  59. </properties>
  60. <profiles>
  61. <profile>
  62. <id>jvnet-release</id>
  63. <build>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-source-plugin</artifactId>
  68. <executions>
  69. <execution>
  70. <id>attach-sources</id>
  71. <goals>
  72. <goal>jar-no-fork</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-javadoc-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <id>attach-javadocs</id>
  83. <goals>
  84. <goal>jar</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-enforcer-plugin</artifactId>
  92. <executions>
  93. <execution>
  94. <id>enforce-maven</id>
  95. <goals>
  96. <goal>enforce</goal>
  97. </goals>
  98. <configuration>
  99. <rules>
  100. <requireMavenVersion>
  101. <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
  102. <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures
  103. and checksums respectively.
  104. </message>
  105. </requireMavenVersion>
  106. </rules>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-gpg-plugin</artifactId>
  114. <executions>
  115. <execution>
  116. <id>sign-artifacts</id>
  117. <phase>verify</phase>
  118. <goals>
  119. <goal>sign</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. </profile>
  127. <profile>
  128. <id>snapshots</id>
  129. <repositories>
  130. <repository>
  131. <id>jvnet-nexus-snapshots</id>
  132. <name>Java.net Nexus Snapshots Repository</name>
  133. <url>https://maven.java.net/content/repositories/snapshots</url>
  134. <releases>
  135. <enabled>false</enabled>
  136. </releases>
  137. <snapshots>
  138. <enabled>true</enabled>
  139. </snapshots>
  140. </repository>
  141. </repositories>
  142. <pluginRepositories>
  143. <pluginRepository>
  144. <id>jvnet-nexus-snapshots</id>
  145. <name>Java.net Nexus Snapshots Repository</name>
  146. <url>https://maven.java.net/content/repositories/snapshots</url>
  147. <releases>
  148. <enabled>false</enabled>
  149. </releases>
  150. <snapshots>
  151. <enabled>true</enabled>
  152. </snapshots>
  153. </pluginRepository>
  154. </pluginRepositories>
  155. </profile>
  156. <profile>
  157. <id>staging</id>
  158. <activation>
  159. <activeByDefault>false</activeByDefault>
  160. </activation>
  161. <repositories>
  162. <repository>
  163. <id>jvnet-nexus-staging</id>
  164. <name>Java.net Staging Repositoriy</name>
  165. <url>https://maven.java.net/content/repositories/staging/</url>
  166. <releases>
  167. <enabled>true</enabled>
  168. </releases>
  169. <snapshots>
  170. <enabled>false</enabled>
  171. </snapshots>
  172. </repository>
  173. </repositories>
  174. <pluginRepositories>
  175. <pluginRepository>
  176. <id>jvnet-nexus-staging</id>
  177. <name>Java.net Staging Repositoriy</name>
  178. <url>https://maven.java.net/content/repositories/staging/</url>
  179. <releases>
  180. <enabled>true</enabled>
  181. </releases>
  182. <snapshots>
  183. <enabled>false</enabled>
  184. </snapshots>
  185. </pluginRepository>
  186. </pluginRepositories>
  187. </profile>
  188. <profile>
  189. <id>promoted</id>
  190. <activation>
  191. <activeByDefault>false</activeByDefault>
  192. </activation>
  193. <repositories>
  194. <repository>
  195. <id>jvnet-nexus-promoted</id>
  196. <name>Java.net Promoted Repositories</name>
  197. <url>https://maven.java.net/content/repositories/promoted/</url>
  198. <releases>
  199. <enabled>true</enabled>
  200. </releases>
  201. <snapshots>
  202. <enabled>false</enabled>
  203. </snapshots>
  204. </repository>
  205. </repositories>
  206. <pluginRepositories>
  207. <pluginRepository>
  208. <id>jvnet-nexus-promoted</id>
  209. <name>Java.net Promoted Repositories</name>
  210. <url>https://maven.java.net/content/repositories/promoted/</url>
  211. <releases>
  212. <enabled>true</enabled>
  213. </releases>
  214. <snapshots>
  215. <enabled>false</enabled>
  216. </snapshots>
  217. </pluginRepository>
  218. </pluginRepositories>
  219. </profile>
  220. </profiles>
  221. </project>