jakarta.mail-api-2.1.3.pom 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!--
  3. Copyright (c) 1997, 2024 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 Public License v. 2.0, which is available at
  6. http://www.eclipse.org/legal/epl-2.0.
  7. This Source Code may also be made available under the following Secondary
  8. Licenses when the conditions for such availability set forth in the
  9. Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
  10. version 2 with the GNU Classpath Exception, which is available at
  11. https://www.gnu.org/software/classpath/license.html.
  12. SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
  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/maven-v4_0_0.xsd">
  16. <parent>
  17. <groupId>org.eclipse.ee4j</groupId>
  18. <artifactId>project</artifactId>
  19. <version>1.0.9</version>
  20. <relativePath/>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>jakarta.mail</groupId>
  24. <artifactId>jakarta.mail-api</artifactId>
  25. <version>2.1.3</version>
  26. <name>Jakarta Mail API</name>
  27. <description>${project.name} ${spec.version} Specification API</description>
  28. <scm>
  29. <connection>scm:git:ssh://git@github.com/jakartaee/mail-api.git</connection>
  30. <developerConnection>scm:git:ssh://git@github.com/jakartaee/mail-api.git</developerConnection>
  31. <url>https://github.com/jakartaee/mail-api</url>
  32. </scm>
  33. <issueManagement>
  34. <system>GitHub</system>
  35. <url>https://github.com/jakartaee/mail-api/issues</url>
  36. </issueManagement>
  37. <licenses>
  38. <license>
  39. <name>EPL 2.0</name>
  40. <url>http://www.eclipse.org/legal/epl-2.0</url>
  41. <distribution>repo</distribution>
  42. </license>
  43. <license>
  44. <name>GPL2 w/ CPE</name>
  45. <url>https://www.gnu.org/software/classpath/license.html</url>
  46. <distribution>repo</distribution>
  47. </license>
  48. <license>
  49. <name>EDL 1.0</name>
  50. <url>http://www.eclipse.org/org/documents/edl-v10.php</url>
  51. <distribution>repo</distribution>
  52. </license>
  53. </licenses>
  54. <properties>
  55. <spec.version>2.1</spec.version>
  56. <spec.title>Jakarta Mail Specification</spec.title>
  57. <project.build.outputTimestamp>2024-02-14T00:00:00Z</project.build.outputTimestamp>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <javadoc.title>Jakarta Mail API documentation</javadoc.title>
  60. <legal.doc.source>${project.basedir}/..</legal.doc.source>
  61. <copyright.exclude>${project.basedir}/../copyright-exclude</copyright.exclude>
  62. <copyright.ignoreyear>false</copyright.ignoreyear>
  63. <copyright.scmonly>true</copyright.scmonly>
  64. <copyright.update>false</copyright.update>
  65. <spotbugs.skip>false</spotbugs.skip>
  66. <spotbugs.threshold>Low</spotbugs.threshold>
  67. <spotbugs.exclude>${project.basedir}/../spotbugs-exclude.xml</spotbugs.exclude>
  68. <!--Maven plugins version-->
  69. <spotbugs.version>4.8.3.1</spotbugs.version>
  70. <!-- version identifier in jakarta.mail.Version -->
  71. <mail.version>${project.version}</mail.version>
  72. </properties>
  73. <dependencyManagement>
  74. <dependencies>
  75. <dependency>
  76. <groupId>jakarta.activation</groupId>
  77. <artifactId>jakarta.activation-api</artifactId>
  78. <version>2.1.3</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.eclipse.angus</groupId>
  82. <artifactId>angus-activation</artifactId>
  83. <version>2.0.2</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <version>4.13.2</version>
  89. </dependency>
  90. </dependencies>
  91. </dependencyManagement>
  92. <dependencies>
  93. <dependency>
  94. <groupId>jakarta.activation</groupId>
  95. <artifactId>jakarta.activation-api</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>junit</groupId>
  99. <artifactId>junit</artifactId>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.eclipse.angus</groupId>
  104. <artifactId>angus-activation</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. </dependencies>
  108. <build>
  109. <pluginManagement>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-resources-plugin</artifactId>
  114. <version>3.3.1</version>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-compiler-plugin</artifactId>
  119. <version>3.12.1</version>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-surefire-plugin</artifactId>
  124. <version>3.2.5</version>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-jar-plugin</artifactId>
  129. <version>3.3.0</version>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.codehaus.mojo</groupId>
  133. <artifactId>build-helper-maven-plugin</artifactId>
  134. <version>3.4.0</version>
  135. </plugin>
  136. <plugin>
  137. <groupId>com.github.spotbugs</groupId>
  138. <artifactId>spotbugs-maven-plugin</artifactId>
  139. <version>${spotbugs.version}</version>
  140. <configuration>
  141. <skip>${spotbugs.skip}</skip>
  142. <threshold>${spotbugs.threshold}</threshold>
  143. <excludeFilterFile>${spotbugs.exclude}</excludeFilterFile>
  144. <fork>true</fork>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-enforcer-plugin</artifactId>
  150. <version>3.4.1</version>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.codehaus.mojo</groupId>
  154. <artifactId>buildnumber-maven-plugin</artifactId>
  155. <version>3.0.0</version>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.felix</groupId>
  159. <artifactId>maven-bundle-plugin</artifactId>
  160. <version>5.1.9</version>
  161. <configuration>
  162. <instructions>
  163. <_noextraheaders>true</_noextraheaders>
  164. </instructions>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-source-plugin</artifactId>
  170. <version>3.2.1</version>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-javadoc-plugin</artifactId>
  175. <version>3.6.3</version>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-project-info-reports-plugin</artifactId>
  180. <version>3.5.0</version>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.glassfish.copyright</groupId>
  184. <artifactId>glassfish-copyright-maven-plugin</artifactId>
  185. <version>2.4</version>
  186. </plugin>
  187. </plugins>
  188. </pluginManagement>
  189. <plugins>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-enforcer-plugin</artifactId>
  193. <executions>
  194. <execution>
  195. <id>enforce-version</id>
  196. <goals>
  197. <goal>enforce</goal>
  198. </goals>
  199. <configuration>
  200. <rules>
  201. <requireMavenVersion>
  202. <version>[3.6.3,)</version>
  203. </requireMavenVersion>
  204. <requireJavaVersion>
  205. <version>[11,)</version>
  206. </requireJavaVersion>
  207. </rules>
  208. </configuration>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.codehaus.mojo</groupId>
  214. <artifactId>buildnumber-maven-plugin</artifactId>
  215. <executions>
  216. <execution>
  217. <id>validate</id>
  218. <phase>validate</phase>
  219. <goals>
  220. <goal>create</goal>
  221. </goals>
  222. <configuration>
  223. <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
  224. <shortRevisionLength>7</shortRevisionLength>
  225. <revisionOnScmFailure>false</revisionOnScmFailure>
  226. </configuration>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-resources-plugin</artifactId>
  233. <executions>
  234. <execution>
  235. <id>copy-resources</id>
  236. <phase>validate</phase>
  237. <goals>
  238. <goal>copy-resources</goal>
  239. </goals>
  240. <configuration>
  241. <outputDirectory>${basedir}/target/generated-sources/version</outputDirectory>
  242. <resources>
  243. <resource>
  244. <directory>src/main/resources</directory>
  245. <filtering>true</filtering>
  246. <includes>
  247. <include>jakarta/mail/Version.java</include>
  248. </includes>
  249. </resource>
  250. </resources>
  251. </configuration>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.codehaus.mojo</groupId>
  257. <artifactId>build-helper-maven-plugin</artifactId>
  258. <executions>
  259. <execution>
  260. <id>add-legal-resource</id>
  261. <phase>generate-resources</phase>
  262. <goals>
  263. <goal>add-resource</goal>
  264. </goals>
  265. <configuration>
  266. <resources>
  267. <resource>
  268. <directory>${legal.doc.source}</directory>
  269. <includes>
  270. <include>NOTICE.md</include>
  271. <include>LICENSE.md</include>
  272. </includes>
  273. <targetPath>META-INF</targetPath>
  274. </resource>
  275. </resources>
  276. </configuration>
  277. </execution>
  278. <execution>
  279. <id>add-sources</id>
  280. <phase>generate-sources</phase>
  281. <goals>
  282. <goal>add-source</goal>
  283. </goals>
  284. <configuration>
  285. <sources>
  286. <source>${basedir}/target/generated-sources/version</source>
  287. </sources>
  288. </configuration>
  289. </execution>
  290. <execution>
  291. <id>currentyear-property</id>
  292. <goals>
  293. <goal>timestamp-property</goal>
  294. </goals>
  295. <phase>validate</phase>
  296. <configuration>
  297. <name>current.year</name>
  298. <locale>en,US</locale>
  299. <pattern>yyyy</pattern>
  300. </configuration>
  301. </execution>
  302. </executions>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-compiler-plugin</artifactId>
  307. <configuration>
  308. <release>9</release>
  309. <createMissingPackageInfoClass>false</createMissingPackageInfoClass>
  310. <compilerArgs>
  311. <arg>-Xlint:all</arg>
  312. </compilerArgs>
  313. <showWarnings>true</showWarnings>
  314. </configuration>
  315. <executions>
  316. <execution>
  317. <id>base-compile</id>
  318. <goals>
  319. <goal>compile</goal>
  320. </goals>
  321. <configuration>
  322. <release>8</release>
  323. <excludes>
  324. <exclude>module-info.java</exclude>
  325. </excludes>
  326. </configuration>
  327. </execution>
  328. </executions>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.apache.felix</groupId>
  332. <artifactId>maven-bundle-plugin</artifactId>
  333. <configuration>
  334. <archive>
  335. <manifest>
  336. <addDefaultEntries>false</addDefaultEntries>
  337. </manifest>
  338. </archive>
  339. <niceManifest>true</niceManifest>
  340. <instructions>
  341. <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  342. <Specification-Title>${spec.title}</Specification-Title>
  343. <Specification-Version>${spec.version}</Specification-Version>
  344. <Specification-Vendor>${project.organization.name}</Specification-Vendor>
  345. <Extension-Name>${project.groupId}</Extension-Name>
  346. <Implementation-Title>${project.name}</Implementation-Title>
  347. <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
  348. <Implementation-Build-Id>${buildNumber}</Implementation-Build-Id>
  349. <DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>
  350. <Import-Package>
  351. !org.glassfish.hk2.osgiresourcelocator,
  352. *
  353. </Import-Package>
  354. <!-- optional to allow usage with hk2 resource locator as a fallback -->
  355. <Require-Capability><![CDATA[
  356. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
  357. (version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
  358. osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.Provider)";
  359. osgi.serviceloader="jakarta.mail.Provider";
  360. cardinality:=multiple;resolution:=optional,
  361. osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.util.StreamProvider)";
  362. osgi.serviceloader="jakarta.mail.util.StreamProvider";
  363. cardinality:=multiple;resolution:=optional,
  364. osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
  365. ]]>
  366. </Require-Capability>
  367. </instructions>
  368. </configuration>
  369. <executions>
  370. <execution>
  371. <id>bundle-manifest</id>
  372. <phase>process-classes</phase>
  373. <goals>
  374. <goal>manifest</goal>
  375. </goals>
  376. </execution>
  377. </executions>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-jar-plugin</artifactId>
  382. <configuration>
  383. <archive>
  384. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  385. <manifest>
  386. <addDefaultEntries>false</addDefaultEntries>
  387. </manifest>
  388. </archive>
  389. <excludes>
  390. <!-- avoid getting (re)sources, such as Version.java, to the binary -->
  391. <exclude>**/*.java</exclude>
  392. </excludes>
  393. </configuration>
  394. </plugin>
  395. <plugin>
  396. <groupId>org.apache.maven.plugins</groupId>
  397. <artifactId>maven-javadoc-plugin</artifactId>
  398. <configuration>
  399. <release>11</release>
  400. <quiet>true</quiet>
  401. <nodeprecated>false</nodeprecated>
  402. <notimestamp>true</notimestamp>
  403. <nosince>true</nosince>
  404. <use>false</use>
  405. <author>true</author>
  406. <version>true</version>
  407. <description>Jakarta Mail API documentation</description>
  408. <doctitle>Jakarta Mail API documentation</doctitle>
  409. <windowtitle>Jakarta Mail API documentation</windowtitle>
  410. <header><![CDATA[Jakarta Mail<br>v${project.version}]]></header>
  411. <bottom><![CDATA[
  412. Comments to : <a href="mailto:mail-dev@eclipse.org">mail-dev@eclipse.org</a>.<br>
  413. Copyright &#169; 2019, ${current.year} Eclipse Foundation. All rights reserved.<br>
  414. Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.]]>
  415. </bottom>
  416. <detectJavaApiLink>false</detectJavaApiLink>
  417. <docfilessubdirs>true</docfilessubdirs>
  418. </configuration>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.apache.maven.plugins</groupId>
  422. <artifactId>maven-surefire-plugin</artifactId>
  423. <configuration>
  424. <forkCount>2</forkCount>
  425. <reuseForks>false</reuseForks>
  426. <trimStackTrace>false</trimStackTrace>
  427. </configuration>
  428. </plugin>
  429. <plugin>
  430. <groupId>org.glassfish.copyright</groupId>
  431. <artifactId>glassfish-copyright-maven-plugin</artifactId>
  432. <configuration>
  433. <excludeFile>${copyright.exclude}</excludeFile>
  434. <!-- skip files not under SCM-->
  435. <scmOnly>${copyright.scmonly}</scmOnly>
  436. <!-- for use with repair -->
  437. <update>${copyright.update}</update>
  438. <!-- check that year is correct -->
  439. <ignoreYear>${copyright.ignoreyear}</ignoreYear>
  440. <quiet>false</quiet>
  441. </configuration>
  442. </plugin>
  443. </plugins>
  444. </build>
  445. <profiles>
  446. <profile>
  447. <id>coverage</id>
  448. <build>
  449. <pluginManagement>
  450. <plugins>
  451. <plugin>
  452. <groupId>org.jacoco</groupId>
  453. <artifactId>jacoco-maven-plugin</artifactId>
  454. <version>0.8.11</version>
  455. </plugin>
  456. </plugins>
  457. </pluginManagement>
  458. <plugins>
  459. <plugin>
  460. <groupId>org.jacoco</groupId>
  461. <artifactId>jacoco-maven-plugin</artifactId>
  462. <executions>
  463. <execution>
  464. <id>default-prepare-agent</id>
  465. <goals>
  466. <goal>prepare-agent</goal>
  467. </goals>
  468. </execution>
  469. <execution>
  470. <id>default-report</id>
  471. <goals>
  472. <goal>report</goal>
  473. </goals>
  474. </execution>
  475. </executions>
  476. </plugin>
  477. </plugins>
  478. </build>
  479. </profile>
  480. </profiles>
  481. </project>