You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.aspectj</groupId>
  7. <artifactId>aspectj-parent</artifactId>
  8. <version>1.9.20-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>aspectjrt</artifactId>
  11. <name>AspectJ Runtime</name>
  12. <description>
  13. The AspectJ runtime is a small library necessary to run Java programs enhanced by AspectJ aspects during a previous
  14. compile-time or post-compile-time (binary weaving) build step.
  15. </description>
  16. <url>https://www.eclipse.org/aspectj/</url>
  17. <licenses>
  18. <license>
  19. <name>Eclipse Public License - v 2.0</name>
  20. <url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
  21. <distribution>repo</distribution>
  22. </license>
  23. </licenses>
  24. <developers>
  25. <developer>
  26. <id>aclement</id>
  27. <name>Andy Clement</name>
  28. <email>aclement@vmware.com</email>
  29. </developer>
  30. <developer>
  31. <id>kriegaex</id>
  32. <name>Alexander Kriegisch</name>
  33. <email>kriegaex@aspectj.dev</email>
  34. </developer>
  35. </developers>
  36. <scm>
  37. <url>https://github.com/eclipse/org.aspectj</url>
  38. <connection>scm:git:https://github.com/eclipse/org.aspectj.git</connection>
  39. <developerConnection>scm:git:ssh://git@github.com:eclipse/org.aspectj.git</developerConnection>
  40. </scm>
  41. <properties>
  42. <!-- By default, do not deploy artifacts - but deploy this public one -->
  43. <maven.deploy.skip>false</maven.deploy.skip>
  44. <!-- By default, do not sign artifacts - but sign this public one -->
  45. <maven.gpg.skip>false</maven.gpg.skip>
  46. </properties>
  47. <build>
  48. <plugins>
  49. <!-- Skip creation of main + test JARs -->
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-jar-plugin</artifactId>
  53. <executions>
  54. <execution>
  55. <id>default-jar</id>
  56. <phase>none</phase>
  57. </execution>
  58. <execution>
  59. <id>test-jar</id>
  60. <phase>none</phase>
  61. </execution>
  62. </executions>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-assembly-plugin</artifactId>
  67. <executions>
  68. <execution>
  69. <id>aspectjrt-assembly</id>
  70. <phase>package</phase>
  71. <goals>
  72. <goal>single</goal>
  73. </goals>
  74. <configuration>
  75. <finalName>aspectjrt-${project.version}</finalName>
  76. <appendAssemblyId>false</appendAssemblyId>
  77. <archive>
  78. <manifestEntries>
  79. <Automatic-Module-Name>org.aspectj.runtime</Automatic-Module-Name>
  80. </manifestEntries>
  81. <manifestSections>
  82. <manifestSection>
  83. <name>org/aspectj/lang/</name>
  84. <manifestEntries>
  85. <Specification-Title>AspectJ Runtime Classes</Specification-Title>
  86. <Specification-Version>${project.version}</Specification-Version>
  87. <Specification-Vendor>https://www.eclipse.org/aspectj/</Specification-Vendor>
  88. <Implementation-Title>org.aspectj.runtime</Implementation-Title>
  89. <Implementation-Version>${project.version}</Implementation-Version>
  90. <Implementation-Vendor>https://www.eclipse.org/aspectj/</Implementation-Vendor>
  91. <Bundle-Name>AspectJ Runtime</Bundle-Name>
  92. <Bundle-Version>${project.version}</Bundle-Version>
  93. <!--
  94. WARNING: Please avoid line breaks in manifest values! They are passed on like this:
  95. Assembly Plugin -> Plexus Archiver -> JRE java.util.jar.Manifest.write(OutputStream).
  96. The JRE Manifest class inserts hard line breaks always after 72 characters, no matter if those
  97. 72 characters contain line feeds, tabs or spaces. Hence, it can happen that unwanted blank lines
  98. end up in the middle of a manifest section, making the manifest invalid. Calls like e.g.
  99. 'java -cp aspectjtools.jar org.aspectj.tools.ajc.Main' can then fail with the absolutely
  100. unexpected error 'Could not find or load main class org.aspectj.tools.ajc.Main'.
  101. Alexander Kriegisch created this bug ticket:
  102. https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8263924
  103. In IntelliJ IDEA you can deactivate wrapping text inside XML tags like this:
  104. File | Settings | Editor | Code Style | XML | Wrap text -> deactivate
  105. -->
  106. <Bundle-Copyright>(C) Copyright 1999-2001 Xerox Corporation, 2002 Palo Alto Research Center, Incorporated (PARC), 2003-2020 Contributors. All Rights Reserved</Bundle-Copyright>
  107. </manifestEntries>
  108. </manifestSection>
  109. </manifestSections>
  110. </archive>
  111. <descriptors>
  112. <descriptor>aspectjrt-assembly.xml</descriptor>
  113. </descriptors>
  114. </configuration>
  115. </execution>
  116. <execution>
  117. <id>aspectjrt-sources-assembly</id>
  118. <phase>package</phase>
  119. <goals>
  120. <goal>single</goal>
  121. </goals>
  122. <configuration>
  123. <!-- The assembly ID 'sources' becomes the artifact classifier, exactly what we want -->
  124. <appendAssemblyId>true</appendAssemblyId>
  125. <skipAssembly>${maven.source.skip}</skipAssembly>
  126. <archive>
  127. </archive>
  128. <descriptors>
  129. <descriptor>aspectjrt-sources-assembly.xml</descriptor>
  130. </descriptors>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.codehaus.mojo</groupId>
  137. <artifactId>truezip-maven-plugin</artifactId>
  138. <executions>
  139. <execution>
  140. <id>unzip-relocated-sources</id>
  141. <phase>package</phase>
  142. <goals>
  143. <goal>copy</goal>
  144. </goals>
  145. <configuration>
  146. <!--
  147. Skip, if javadoc generation is also meant to be skipped, which is the default unless the 'release'
  148. profile is active or the property is overridden manually to be false. See property definitions in parent
  149. POM for default case and release profile.
  150. -->
  151. <skip>${maven.javadoc.skip}</skip>
  152. <verbose>true</verbose>
  153. <fileset>
  154. <directory>${project.build.directory}/${project.build.finalName}-sources.jar</directory>
  155. <outputDirectory>${project.build.directory}/unpacked-sources</outputDirectory>
  156. </fileset>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-javadoc-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <id>javadoc-jar</id>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>jar</goal>
  170. </goals>
  171. <configuration>
  172. <sourcepath>${project.build.directory}/unpacked-sources</sourcepath>
  173. <!-- TODO: Include 'aj' package for ASM-renamed contained in aspectjtools? -->
  174. <subpackages>org.aspectj</subpackages>
  175. <!-- Deactivate doclint checks in order to suppress errors -->
  176. <doclint>none</doclint>
  177. <!-- Generate class use xref, making javadocs considerably bigger, but also more informative -->
  178. <use>true</use>
  179. <!-- FIXME: Why does it fail without this parameter? -->
  180. <javadocVersion>8</javadocVersion>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <!-- Caveat: Attaching the flattened POM needs packaging=jar, so do not use packaging=pom for this module -->
  186. <plugin>
  187. <groupId>org.codehaus.mojo</groupId>
  188. <artifactId>flatten-maven-plugin</artifactId>
  189. <executions>
  190. <!-- Remove dependencies declared in this POM (if any) from uber JAR and strip down POM -->
  191. <execution>
  192. <id>flatten</id>
  193. <phase>process-resources</phase>
  194. <goals>
  195. <goal>flatten</goal>
  196. </goals>
  197. <configuration>
  198. <flattenMode>oss</flattenMode>
  199. <pomElements>
  200. <dependencies>remove</dependencies>
  201. <repositories>remove</repositories>
  202. </pomElements>
  203. <outputDirectory>${project.build.directory}</outputDirectory>
  204. <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename>
  205. </configuration>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <!-- Deploy this module to Nexus (Sonatype OSSRH, releases promotable to Maven Central) -->
  210. <plugin>
  211. <groupId>org.sonatype.plugins</groupId>
  212. <artifactId>nexus-staging-maven-plugin</artifactId>
  213. </plugin>
  214. </plugins>
  215. <pluginManagement>
  216. <plugins>
  217. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  218. <plugin>
  219. <groupId>org.eclipse.m2e</groupId>
  220. <artifactId>lifecycle-mapping</artifactId>
  221. <version>1.0.0</version>
  222. <configuration>
  223. <lifecycleMappingMetadata>
  224. <pluginExecutions>
  225. <pluginExecution>
  226. <pluginExecutionFilter>
  227. <groupId>
  228. org.codehaus.mojo
  229. </groupId>
  230. <artifactId>
  231. flatten-maven-plugin
  232. </artifactId>
  233. <versionRange>
  234. [1.2.2,)
  235. </versionRange>
  236. <goals>
  237. <goal>flatten</goal>
  238. </goals>
  239. </pluginExecutionFilter>
  240. <action>
  241. <ignore></ignore>
  242. </action>
  243. </pluginExecution>
  244. </pluginExecutions>
  245. </lifecycleMappingMetadata>
  246. </configuration>
  247. </plugin>
  248. </plugins>
  249. </pluginManagement>
  250. </build>
  251. <dependencies>
  252. <dependency>
  253. <groupId>org.aspectj</groupId>
  254. <artifactId>runtime</artifactId>
  255. <version>${project.version}</version>
  256. </dependency>
  257. </dependencies>
  258. </project>