jakarta.mail-api-1.6.7.pom 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!--
  3. Copyright (c) 1997, 2021 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. <!--
  15. This project builds the Jakarta Mail API jar file, which contains only
  16. the javax.mail.* API definitions and is *only* intended to be used
  17. for programs to compile against. Note that it includes none of the
  18. implementation-specific classes that the jakarta.mail.* classes rely on.
  19. NOTE: Because the jar still has to be usable on Java SE 8 and/or
  20. on the classpath, implementation-specific com.sun classes are not included.
  21. Therefore putting this file on the module-path may not work as expected.
  22. To fix this, com.sun classes need to be added to the jar file
  23. while the JPMS descriptor needs to be kept as-is.
  24. -->
  25. <project xmlns="http://maven.apache.org/POM/4.0.0"
  26. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  27. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  28. http://maven.apache.org/maven-v4_0_0.xsd">
  29. <parent>
  30. <groupId>com.sun.mail</groupId>
  31. <artifactId>all</artifactId>
  32. <version>1.6.7</version>
  33. </parent>
  34. <modelVersion>4.0.0</modelVersion>
  35. <groupId>jakarta.mail</groupId>
  36. <artifactId>jakarta.mail-api</artifactId>
  37. <packaging>jar</packaging>
  38. <name>Jakarta Mail API jar</name>
  39. <!-- for build to succeed -->
  40. <dependencies>
  41. <dependency>
  42. <groupId>com.sun.activation</groupId>
  43. <artifactId>jakarta.activation</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. </dependencies>
  47. <properties>
  48. <mail.extensionName>
  49. jakarta.mail
  50. </mail.extensionName>
  51. <mail.packages.export>
  52. javax.mail.*; version=${mail.spec.version}
  53. </mail.packages.export>
  54. <mail.bundle.symbolicName>
  55. jakarta.mail-api
  56. </mail.bundle.symbolicName>
  57. <mail.moduleName>
  58. jakarta.mail
  59. </mail.moduleName>
  60. <mail.recompile.skip>true</mail.recompile.skip>
  61. </properties>
  62. <build>
  63. <plugins>
  64. <plugin>
  65. <artifactId>maven-dependency-plugin</artifactId>
  66. <executions>
  67. <execution>
  68. <!-- download the binaries -->
  69. <id>get-binaries</id>
  70. <phase>compile</phase>
  71. <goals>
  72. <goal>unpack</goal>
  73. </goals>
  74. <configuration>
  75. <artifactItems>
  76. <artifactItem>
  77. <groupId>com.sun.mail</groupId>
  78. <artifactId>jakarta.mail</artifactId>
  79. <version>${mail.version}</version>
  80. </artifactItem>
  81. </artifactItems>
  82. <outputDirectory>
  83. ${project.build.outputDirectory}
  84. </outputDirectory>
  85. </configuration>
  86. </execution>
  87. <execution>
  88. <!-- download the sources -->
  89. <id>get-sources</id>
  90. <phase>compile</phase>
  91. <goals>
  92. <goal>unpack</goal>
  93. </goals>
  94. <configuration>
  95. <artifactItems>
  96. <artifactItem>
  97. <groupId>com.sun.mail</groupId>
  98. <artifactId>jakarta.mail</artifactId>
  99. <version>${mail.version}</version>
  100. <classifier>sources</classifier>
  101. <outputDirectory>
  102. ${project.build.directory}/generated-sources/sources
  103. </outputDirectory>
  104. </artifactItem>
  105. </artifactItems>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. <configuration>
  110. <!--
  111. Include all the implementation source files so that
  112. javadoc run as part of "deploy" will find all the
  113. required classes.
  114. Don't include the metadata files from the original
  115. jar file.
  116. -->
  117. <excludes>
  118. module-info.*,
  119. META-INF/**
  120. </excludes>
  121. </configuration>
  122. </plugin>
  123. <!--
  124. Skip compiling since the dependency plugin pulled in
  125. the sources and class files.
  126. We only need to compile JPMS descriptor.
  127. -->
  128. <plugin>
  129. <artifactId>maven-compiler-plugin</artifactId>
  130. <executions>
  131. <execution>
  132. <id>module-info-compile</id>
  133. <goals>
  134. <goal>compile</goal>
  135. </goals>
  136. <configuration>
  137. <release>11</release>
  138. <includes>
  139. <include>module-info.java</include>
  140. </includes>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <!--
  146. Don't include the implementation classes in the jar file.
  147. -->
  148. <plugin>
  149. <artifactId>maven-jar-plugin</artifactId>
  150. <configuration>
  151. <finalName>${project.artifactId}</finalName>
  152. <excludes>
  153. <exclude>com/**</exclude>
  154. </excludes>
  155. </configuration>
  156. </plugin>
  157. <!--
  158. Don't include the implementation sources in the jar file.
  159. -->
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-source-plugin</artifactId>
  163. <configuration>
  164. <excludes>
  165. <exclude>com/**</exclude>
  166. </excludes>
  167. </configuration>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-javadoc-plugin</artifactId>
  172. <configuration>
  173. <excludePackageNames>com.sun.*</excludePackageNames>
  174. <bottom>${mail.javadoc.bottom}</bottom>
  175. <header>${mail.javadoc.api.header}</header>
  176. <javadocDirectory>${project.build.directory}/generated-sources/sources</javadocDirectory>
  177. <additionalOptions>
  178. <additionalOption>--add-modules</additionalOption>
  179. <additionalOption>java.datatransfer</additionalOption>
  180. </additionalOptions>
  181. </configuration>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </project>