jakarta.mail-api-2.1.2.pom 21 KB

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