jakarta.activation-api-2.1.2.pom 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
  4. This program and the accompanying materials are made available under the
  5. terms of the Eclipse Distribution License v. 1.0, which is available at
  6. http://www.eclipse.org/org/documents/edl-v10.php.
  7. SPDX-License-Identifier: BSD-3-Clause
  8. -->
  9. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  11. <parent>
  12. <groupId>org.eclipse.ee4j</groupId>
  13. <artifactId>project</artifactId>
  14. <version>1.0.7</version>
  15. </parent>
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>jakarta.activation</groupId>
  18. <artifactId>jakarta.activation-api</artifactId>
  19. <version>2.1.2</version>
  20. <packaging>jar</packaging>
  21. <name>Jakarta Activation API</name>
  22. <description>${project.name} ${spec.version} Specification</description>
  23. <url>https://github.com/jakartaee/jaf-api</url>
  24. <properties>
  25. <spec.version>2.1</spec.version>
  26. <spec.title>Jakarta Activation Specification</spec.title>
  27. <activation.recompile.skip>false</activation.recompile.skip>
  28. <!-- for the osgiversion-maven-plugin -->
  29. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  30. <javadoc.title>Jakarta Activation API documentation</javadoc.title>
  31. <legal.doc.source>${project.basedir}/..</legal.doc.source>
  32. <copyright.exclude>${project.basedir}/../etc/copyright-exclude</copyright.exclude>
  33. <copyright.ignoreyear>false</copyright.ignoreyear>
  34. <copyright.scmonly>true</copyright.scmonly>
  35. <copyright.update>false</copyright.update>
  36. <spotbugs.skip>false</spotbugs.skip>
  37. <spotbugs.threshold>Low</spotbugs.threshold>
  38. <spotbugs.exclude>${project.basedir}/../etc/spotbugs-exclude.xml</spotbugs.exclude>
  39. <!--Maven plugins version-->
  40. <spotbugs.version>4.7.3.4</spotbugs.version>
  41. </properties>
  42. <scm>
  43. <connection>scm:git:ssh://git@github.com/jakartaee/jaf-api.git</connection>
  44. <developerConnection>scm:git:ssh://git@github.com/jakartaee/jaf-api.git</developerConnection>
  45. <url>https://github.com/jakartaee/jaf-api</url>
  46. <tag>HEAD</tag>
  47. </scm>
  48. <issueManagement>
  49. <system>github</system>
  50. <url>https://github.com/jakartaee/jaf-api/issues/</url>
  51. </issueManagement>
  52. <licenses>
  53. <license>
  54. <name>EDL 1.0</name>
  55. <url>http://www.eclipse.org/org/documents/edl-v10.php</url>
  56. <distribution>repo</distribution>
  57. </license>
  58. </licenses>
  59. <developers>
  60. <developer>
  61. <id>shannon</id>
  62. <name>Bill Shannon</name>
  63. <email>bill.shannon@oracle.com</email>
  64. <organization>Oracle</organization>
  65. <roles>
  66. <role>lead</role>
  67. </roles>
  68. </developer>
  69. </developers>
  70. <!-- following to enable use of "mvn site:stage" -->
  71. <distributionManagement>
  72. <site>
  73. <id>oracle.com</id>
  74. <url>file:/tmp</url> <!-- not used -->
  75. </site>
  76. </distributionManagement>
  77. <build>
  78. <resources>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <filtering>true</filtering>
  82. <excludes>
  83. <exclude>META-INF/*.default</exclude>
  84. </excludes>
  85. </resource>
  86. <resource>
  87. <directory>src/main/resources</directory>
  88. <filtering>false</filtering>
  89. <includes>
  90. <include>META-INF/*.default</include>
  91. </includes>
  92. </resource>
  93. </resources>
  94. <pluginManagement>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>3.11.0</version>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.codehaus.mojo</groupId>
  103. <artifactId>buildnumber-maven-plugin</artifactId>
  104. <version>3.0.0</version>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.felix</groupId>
  108. <artifactId>maven-bundle-plugin</artifactId>
  109. <version>5.1.8</version>
  110. <configuration>
  111. <instructions>
  112. <_noextraheaders>true</_noextraheaders>
  113. </instructions>
  114. </configuration>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-jar-plugin</artifactId>
  119. <version>3.3.0</version>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.codehaus.mojo</groupId>
  123. <artifactId>build-helper-maven-plugin</artifactId>
  124. <version>3.3.0</version>
  125. </plugin>
  126. <plugin>
  127. <groupId>com.github.spotbugs</groupId>
  128. <artifactId>spotbugs-maven-plugin</artifactId>
  129. <version>${spotbugs.version}</version>
  130. <configuration>
  131. <skip>${spotbugs.skip}</skip>
  132. <threshold>${spotbugs.threshold}</threshold>
  133. <excludeFilterFile>${spotbugs.exclude}</excludeFilterFile>
  134. <fork>true</fork>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-enforcer-plugin</artifactId>
  140. <version>3.3.0</version>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-source-plugin</artifactId>
  145. <version>3.2.1</version>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-javadoc-plugin</artifactId>
  150. <version>3.5.0</version>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.glassfish.copyright</groupId>
  154. <artifactId>glassfish-copyright-maven-plugin</artifactId>
  155. <version>2.4</version>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-site-plugin</artifactId>
  160. <version>3.12.1</version>
  161. </plugin>
  162. </plugins>
  163. </pluginManagement>
  164. <plugins>
  165. <!--
  166. Make sure we're using the correct version of maven.
  167. -->
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-enforcer-plugin</artifactId>
  171. <executions>
  172. <execution>
  173. <id>enforce-version</id>
  174. <goals>
  175. <goal>enforce</goal>
  176. </goals>
  177. <configuration>
  178. <rules>
  179. <requireMavenVersion>
  180. <version>[3.6.3,)</version>
  181. </requireMavenVersion>
  182. <requireJavaVersion>
  183. <version>[11,)</version>
  184. </requireJavaVersion>
  185. </rules>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <!--
  191. Use the JDK 9+ compiler but with -source 1.8 for all
  192. but the module-info.java file.
  193. -->
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-compiler-plugin</artifactId>
  197. <configuration>
  198. <release>9</release>
  199. <compilerArgs>
  200. <arg>-Xlint:all</arg>
  201. </compilerArgs>
  202. <showDeprecation>true</showDeprecation>
  203. <createMissingPackageInfoClass>false</createMissingPackageInfoClass>
  204. </configuration>
  205. <executions>
  206. <execution>
  207. <id>base-compile</id>
  208. <goals>
  209. <goal>compile</goal>
  210. </goals>
  211. <configuration>
  212. <release>8</release>
  213. <excludes>
  214. <exclude>module-info.java</exclude>
  215. </excludes>
  216. </configuration>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.codehaus.mojo</groupId>
  222. <artifactId>buildnumber-maven-plugin</artifactId>
  223. <executions>
  224. <execution>
  225. <id>validate</id>
  226. <phase>validate</phase>
  227. <goals>
  228. <goal>create</goal>
  229. </goals>
  230. <configuration>
  231. <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
  232. <shortRevisionLength>7</shortRevisionLength>
  233. <revisionOnScmFailure>false</revisionOnScmFailure>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.felix</groupId>
  240. <artifactId>maven-bundle-plugin</artifactId>
  241. <configuration>
  242. <archive>
  243. <manifest>
  244. <addDefaultEntries>false</addDefaultEntries>
  245. </manifest>
  246. </archive>
  247. <niceManifest>true</niceManifest>
  248. <instructions>
  249. <_noextraheaders>true</_noextraheaders>
  250. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  251. <Specification-Title>${spec.title}</Specification-Title>
  252. <Specification-Version>${spec.version}</Specification-Version>
  253. <Specification-Vendor>${project.organization.name}</Specification-Vendor>
  254. <Extension-Name>${project.groupId}</Extension-Name>
  255. <Implementation-Title>${project.name}</Implementation-Title>
  256. <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
  257. <Implementation-Build-Id>${buildNumber}</Implementation-Build-Id>
  258. <DynamicImport-Package>*</DynamicImport-Package>
  259. <DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>
  260. <Import-Package>
  261. !org.glassfish.hk2.osgiresourcelocator,
  262. *
  263. </Import-Package>
  264. <!-- optional to allow usage with hk2 resource locator as a fallback -->
  265. <Require-Capability><![CDATA[
  266. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
  267. (version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
  268. osgi.serviceloader;
  269. filter:="(osgi.serviceloader=jakarta.activation.spi.MailcapRegistryProvider)";
  270. osgi.serviceloader="jakarta.activation.spi.MailcapRegistryProvider";
  271. cardinality:=multiple;resolution:=optional,
  272. osgi.serviceloader;
  273. filter:="(osgi.serviceloader=jakarta.activation.spi.MimeTypeRegistryProvider)";
  274. osgi.serviceloader="jakarta.activation.spi.MimeTypeRegistryProvider";
  275. cardinality:=multiple;resolution:=optional,
  276. osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))
  277. ]]>
  278. </Require-Capability>
  279. </instructions>
  280. </configuration>
  281. <executions>
  282. <execution>
  283. <id>bundle-manifest</id>
  284. <phase>process-classes</phase>
  285. <goals>
  286. <goal>manifest</goal>
  287. </goals>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <plugin>
  292. <groupId>org.apache.maven.plugins</groupId>
  293. <artifactId>maven-jar-plugin</artifactId>
  294. <configuration>
  295. <archive>
  296. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  297. <manifest>
  298. <addDefaultEntries>false</addDefaultEntries>
  299. </manifest>
  300. </archive>
  301. </configuration>
  302. </plugin>
  303. <!--
  304. Tell the source plugin about the sources that may have
  305. been downloaded by the maven-dependency-plugin.
  306. -->
  307. <plugin>
  308. <groupId>org.codehaus.mojo</groupId>
  309. <artifactId>build-helper-maven-plugin</artifactId>
  310. <executions>
  311. <execution>
  312. <id>currentyear-property</id>
  313. <goals>
  314. <goal>timestamp-property</goal>
  315. </goals>
  316. <phase>validate</phase>
  317. <configuration>
  318. <name>current.year</name>
  319. <locale>en,US</locale>
  320. <pattern>yyyy</pattern>
  321. </configuration>
  322. </execution>
  323. <execution>
  324. <id>add-resource</id>
  325. <phase>generate-resources</phase>
  326. <goals>
  327. <goal>add-resource</goal>
  328. </goals>
  329. <configuration>
  330. <resources>
  331. <resource>
  332. <directory>${legal.doc.source}</directory>
  333. <targetPath>META-INF</targetPath>
  334. <includes>
  335. <include>LICENSE.md</include>
  336. <include>NOTICE.md</include>
  337. </includes>
  338. </resource>
  339. </resources>
  340. </configuration>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-source-plugin</artifactId>
  347. <configuration>
  348. <archive>
  349. <manifest>
  350. <addDefaultEntries>false</addDefaultEntries>
  351. </manifest>
  352. </archive>
  353. </configuration>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.apache.maven.plugins</groupId>
  357. <artifactId>maven-javadoc-plugin</artifactId>
  358. <configuration>
  359. <archive>
  360. <manifest>
  361. <addDefaultEntries>false</addDefaultEntries>
  362. </manifest>
  363. </archive>
  364. <author>false</author>
  365. <description>${javadoc.title}</description>
  366. <doctitle>${javadoc.title}</doctitle>
  367. <windowtitle>${javadoc.title}</windowtitle>
  368. <splitindex>true</splitindex>
  369. <use>true</use>
  370. <notimestamp>true</notimestamp>
  371. <serialwarn>true</serialwarn>
  372. <header><![CDATA[<br>Jakarta Activation API v${project.version}]]></header>
  373. <bottom>
  374. <![CDATA[
  375. Comments to : <a href="mailto:jaf-dev@eclipse.org">jaf-dev@eclipse.org</a>.<br>
  376. Copyright &#169; 2019, ${current.year} Eclipse Foundation. All rights reserved.<br>
  377. Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.]]>
  378. </bottom>
  379. <!-- force the doc-files directory to be copied -->
  380. <docfilessubdirs>true</docfilessubdirs>
  381. <detectJavaApiLink>false</detectJavaApiLink>
  382. <release>11</release>
  383. <quiet>true</quiet>
  384. </configuration>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.glassfish.copyright</groupId>
  388. <artifactId>glassfish-copyright-maven-plugin</artifactId>
  389. <configuration>
  390. <excludeFile>${copyright.exclude}</excludeFile>
  391. <!-- skip files not under SCM-->
  392. <scmOnly>${copyright.scmonly}</scmOnly>
  393. <!-- for use with repair -->
  394. <update>${copyright.update}</update>
  395. <!-- check that year is correct -->
  396. <ignoreYear>${copyright.ignoreyear}</ignoreYear>
  397. <quiet>false</quiet>
  398. </configuration>
  399. </plugin>
  400. </plugins>
  401. </build>
  402. </project>