pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  4. Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
  5. The contents of this file are subject to the terms of either the GNU
  6. General Public License Version 2 only ("GPL") or the Common Development
  7. and Distribution License("CDDL") (collectively, the "License"). You
  8. may not use this file except in compliance with the License. You can
  9. obtain a copy of the License at
  10. https://oss.oracle.com/licenses/CDDL+GPL-1.1
  11. or LICENSE.txt. See the License for the specific
  12. language governing permissions and limitations under the License.
  13. When distributing the software, include this License Header Notice in each
  14. file and include the License file at LICENSE.txt.
  15. GPL Classpath Exception:
  16. Oracle designates this particular file as subject to the "Classpath"
  17. exception as provided by Oracle in the GPL Version 2 section of the License
  18. file that accompanied this code.
  19. Modifications:
  20. If applicable, add the following below the License Header, with the fields
  21. enclosed by brackets [] replaced by your own identifying information:
  22. "Portions Copyright [year] [name of copyright owner]"
  23. Contributor(s):
  24. If you wish your version of this file to be governed by only the CDDL or
  25. only the GPL Version 2, indicate your decision by adding "[Contributor]
  26. elects to include this software in this distribution under the [CDDL or GPL
  27. Version 2] license." If you don't indicate a single choice of license, a
  28. recipient has the option to distribute your version of this file under
  29. either the CDDL, the GPL Version 2 or to extend the choice of license to
  30. its licensees as provided above. However, if you add GPL Version 2 code
  31. and therefore, elected the GPL Version 2 license, then the option applies
  32. only if the new code is made subject to such option by the copyright
  33. holder.
  34. -->
  35. <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/maven-v4_0_0.xsd">
  36. <modelVersion>4.0.0</modelVersion>
  37. <parent>
  38. <groupId>net.java</groupId>
  39. <artifactId>jvnet-parent</artifactId>
  40. <version>3</version>
  41. </parent>
  42. <groupId>javax.annotation</groupId>
  43. <artifactId>javax.annotation-api</artifactId>
  44. <version>1.3.1</version>
  45. <properties>
  46. <non.final>false</non.final>
  47. <spec.version>1.3</spec.version>
  48. <extension.name>javax.annotation</extension.name>
  49. <bundle.symbolicName>javax.annotation-api</bundle.symbolicName>
  50. <vendor.name>Oracle Corporation</vendor.name>
  51. <implementation.vendor.id>org.glassfish</implementation.vendor.id>
  52. <findbugs.version>2.3.1</findbugs.version>
  53. <findbugs.exclude>exclude.xml</findbugs.exclude>
  54. <findbugs.threshold>Low</findbugs.threshold>
  55. </properties>
  56. <name>${extension.name} API</name>
  57. <description>Common Annotations for the JavaTM Platform API</description>
  58. <url>http://jcp.org/en/jsr/detail?id=250</url>
  59. <developers>
  60. <developer>
  61. <id>ldemichiel</id>
  62. <name>Linda De Michiel</name>
  63. <organization>Oracle Corp.</organization>
  64. <roles>
  65. <role>lead</role>
  66. </roles>
  67. </developer>
  68. </developers>
  69. <organization>
  70. <name>GlassFish Community</name>
  71. <url>https://javaee.github.io/glassfish</url>
  72. </organization>
  73. <licenses>
  74. <license>
  75. <name>CDDL + GPLv2 with classpath exception</name>
  76. <url>https://github.com/javaee/javax.annotation/blob/master/LICENSE</url>
  77. <distribution>repo</distribution>
  78. <comments>A business-friendly OSS license</comments>
  79. </license>
  80. </licenses>
  81. <issueManagement>
  82. <system>GitHub</system>
  83. <url>https://github.com/javaee/javax.annotation/issues</url>
  84. </issueManagement>
  85. <mailingLists>
  86. <mailingList>
  87. <name>GlassFish Developer</name>
  88. <archive>javaee-spec@javaee.groups.io</archive>
  89. </mailingList>
  90. </mailingLists>
  91. <scm>
  92. <connection>scm:git:https://github.com/javaee/javax.annotation.git</connection>
  93. <developerConnection>scm:git:git@github.com:javaee/javax.annotation.git</developerConnection>
  94. <url>https://github.com/javaee/javax.annotation</url>
  95. <tag>1.3.1</tag>
  96. </scm>
  97. <build>
  98. <resources>
  99. <resource>
  100. <directory>src/main/java</directory>
  101. <includes>
  102. <include>**/*.properties</include>
  103. <include>**/*.html</include>
  104. </includes>
  105. </resource>
  106. <resource>
  107. <directory>src/main/resources</directory>
  108. <excludes>
  109. <exclude>META-INF/README</exclude>
  110. </excludes>
  111. </resource>
  112. </resources>
  113. <plugins>
  114. <plugin>
  115. <artifactId>maven-compiler-plugin</artifactId>
  116. <version>2.5.1</version>
  117. <configuration>
  118. <source>1.8</source>
  119. <target>1.8</target>
  120. <compilerArgument>-Xlint:unchecked</compilerArgument>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.glassfish.build</groupId>
  125. <artifactId>spec-version-maven-plugin</artifactId>
  126. <version>1.2</version>
  127. <configuration>
  128. <spec>
  129. <nonFinal>${non.final}</nonFinal>
  130. <jarType>api</jarType>
  131. <specBuild>${spec.build}</specBuild>
  132. <specVersion>${spec.version}</specVersion>
  133. <newSpecVersion>${new.spec.version}</newSpecVersion>
  134. <specImplVersion>${project.version}</specImplVersion>
  135. <apiPackage>${extension.name}</apiPackage>
  136. </spec>
  137. </configuration>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>set-spec-properties</goal>
  142. <goal>check-module</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.felix</groupId>
  149. <artifactId>maven-bundle-plugin</artifactId>
  150. <version>1.4.3</version>
  151. <configuration>
  152. <supportedProjectTypes>
  153. <supportedProjectType>jar</supportedProjectType>
  154. </supportedProjectTypes>
  155. <instructions>
  156. <Bundle-Version>${spec.bundle.version}</Bundle-Version>
  157. <Bundle-SymbolicName>${spec.bundle.symbolic-name}</Bundle-SymbolicName>
  158. <Extension-Name>${spec.extension.name}</Extension-Name>
  159. <Implementation-Version>${spec.implementation.version}</Implementation-Version>
  160. <Specification-Version>${spec.specification.version}</Specification-Version>
  161. <Bundle-Description>
  162. Java(TM) Common Annotations ${spec.version} API Design Specification
  163. </Bundle-Description>
  164. <Specification-Vendor>${vendor.name}</Specification-Vendor>
  165. <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
  166. <Implementation-Vendor-Id>${implementation.vendor.id}</Implementation-Vendor-Id>
  167. </instructions>
  168. </configuration>
  169. <executions>
  170. <execution>
  171. <id>bundle-manifest</id>
  172. <phase>process-classes</phase>
  173. <goals>
  174. <goal>manifest</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-jar-plugin</artifactId>
  182. <version>2.4</version>
  183. <configuration>
  184. <archive>
  185. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  186. <manifestEntries>
  187. <!-- for JDK 9 -->
  188. <Automatic-Module-Name>
  189. java.annotation
  190. </Automatic-Module-Name>
  191. </manifestEntries>
  192. </archive>
  193. <excludes>
  194. <exclude>**/*.java</exclude>
  195. </excludes>
  196. </configuration>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-remote-resources-plugin</artifactId>
  201. <version>1.2.1</version>
  202. <executions>
  203. <execution>
  204. <goals>
  205. <goal>process</goal>
  206. </goals>
  207. <configuration>
  208. <resourceBundles>
  209. <resourceBundle>org.glassfish:legal:1.1</resourceBundle>
  210. </resourceBundles>
  211. </configuration>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-source-plugin</artifactId>
  218. <version>2.1</version>
  219. <configuration>
  220. <includePom>true</includePom>
  221. </configuration>
  222. <executions>
  223. <execution>
  224. <id>attach-sources</id>
  225. <goals>
  226. <goal>jar-no-fork</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-javadoc-plugin</artifactId>
  234. <version>2.8</version>
  235. <executions>
  236. <execution>
  237. <phase>javadoc</phase>
  238. <goals>
  239. <goal>javadoc</goal>
  240. </goals>
  241. <configuration>
  242. <groups>
  243. <group>
  244. <title>Common Annotations API Documentation</title>
  245. <packages>javax.annotation</packages>
  246. </group>
  247. </groups>
  248. <bottom>
  249. <![CDATA[Copyright &#169; 1999-2017,
  250. <a href="http://www.oracle.com">Oracle</a>
  251. and/or its affiliates. All Rights Reserved.
  252. Use is subject to
  253. <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.
  254. ]]>
  255. </bottom>
  256. </configuration>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.codehaus.mojo</groupId>
  262. <artifactId>findbugs-maven-plugin</artifactId>
  263. <version>${findbugs.version}</version>
  264. <configuration>
  265. <threshold>${findbugs.threshold}</threshold>
  266. <excludeFilterFile>${findbugs.exclude}</excludeFilterFile>
  267. <findbugsXmlOutput>true</findbugsXmlOutput>
  268. <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  269. </configuration>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-release-plugin</artifactId>
  274. <version>2.5.3</version>
  275. <configuration>
  276. <mavenExecutorId>forked-path</mavenExecutorId>
  277. <useReleaseProfile>false</useReleaseProfile>
  278. <arguments>${release.arguments}</arguments>
  279. <tagNameFormat>@{project.version}</tagNameFormat>
  280. </configuration>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-site-plugin</artifactId>
  285. <version>3.1</version>
  286. <configuration>
  287. <reporting>
  288. <plugins>
  289. <plugin>
  290. <groupId>org.codehaus.mojo</groupId>
  291. <artifactId>findbugs-maven-plugin</artifactId>
  292. <version>${findbugs.version}</version>
  293. <configuration>
  294. <threshold>${findbugs.threshold}</threshold>
  295. <excludeFilterFile>${findbugs.exclude}</excludeFilterFile>
  296. </configuration>
  297. </plugin>
  298. </plugins>
  299. </reporting>
  300. </configuration>
  301. </plugin>
  302. </plugins>
  303. </build>
  304. </project>