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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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.7.BUILD-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>aspectjweaver</artifactId>
  11. <name>AspectJ Weaver</name>
  12. <description>
  13. The AspectJ weaver applies aspects to Java classes. It can be used as a Java agent in order to apply load-time
  14. weaving (LTW) during class-loading and also contains the AspectJ runtime classes.
  15. </description>
  16. <url>https://www.eclipse.org/aspectj/</url>
  17. <licenses>
  18. <license>
  19. <name>Eclipse Public License - v 1.0</name>
  20. <url>http://www.eclipse.org/legal/epl-v10.html</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. </properties>
  45. <build>
  46. <plugins>
  47. <!-- Skip creation of main + test JARs -->
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-jar-plugin</artifactId>
  51. <executions>
  52. <execution>
  53. <id>default-jar</id>
  54. <phase>none</phase>
  55. </execution>
  56. <execution>
  57. <id>test-jar</id>
  58. <phase>none</phase>
  59. </execution>
  60. </executions>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-dependency-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <id>unzip-dependency-sources</id>
  68. <goals>
  69. <goal>unpack-dependencies</goal>
  70. </goals>
  71. <phase>prepare-package</phase>
  72. <configuration>
  73. <classifier>sources</classifier>
  74. <!--<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>-->
  75. <includeArtifactIds>asm-renamed</includeArtifactIds>
  76. <outputDirectory>${project.build.directory}/unzipped-sources</outputDirectory>
  77. <!-- Avoid accidentally shading test-scoped dependencies like JUnit -->
  78. <includeScope>runtime</includeScope>
  79. </configuration>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-assembly-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <id>aspectjweaver-assembly</id>
  89. <phase>package</phase>
  90. <goals>
  91. <goal>single</goal>
  92. </goals>
  93. <configuration>
  94. <finalName>aspectjweaver-${project.version}</finalName>
  95. <appendAssemblyId>false</appendAssemblyId>
  96. <archive>
  97. <manifestEntries>
  98. <Automatic-Module-Name>org.aspectj.weaver</Automatic-Module-Name>
  99. <Premain-Class>org.aspectj.weaver.loadtime.Agent</Premain-Class>
  100. <Agent-Class>org.aspectj.weaver.loadtime.Agent</Agent-Class>
  101. <Can-Redefine-Classes>true</Can-Redefine-Classes>
  102. </manifestEntries>
  103. <manifestSections>
  104. <manifestSection>
  105. <name>org/aspectj/weaver/</name>
  106. <manifestEntries>
  107. <Specification-Title>AspectJ Weaver Classes</Specification-Title>
  108. <Specification-Version>${project.version}</Specification-Version>
  109. <Specification-Vendor>https://www.eclipse.org/aspectj/</Specification-Vendor>
  110. <Implementation-Title>org.aspectj.weaver</Implementation-Title>
  111. <Implementation-Version>${project.version}</Implementation-Version>
  112. <Implementation-Vendor>https://www.eclipse.org/aspectj/</Implementation-Vendor>
  113. <Bundle-Name>AspectJ Weaver</Bundle-Name>
  114. <Bundle-Version>${project.version}</Bundle-Version>
  115. <!--
  116. WARNING: Please avoid line breaks in manifest values! They are passed on like this:
  117. Assembly Plugin -> Plexus Archiver -> JRE java.util.jar.Manifest.write(OutputStream).
  118. The JRE Manifest class inserts hard line breaks always after 72 characters, no matter if those
  119. 72 characters contain line feeds, tabs or spaces. Hence, it can happen that unwanted blank lines
  120. end up in the middle of a manifest section, making the manifest invalid. Calls like e.g.
  121. 'java -cp aspectjtools.jar org.aspectj.tools.ajc.Main' can then fail with the absolutely
  122. unexpected error 'Could not find or load main class org.aspectj.tools.ajc.Main'.
  123. Alexander Kriegisch created this bug ticket:
  124. https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8263924
  125. In IntelliJ IDEA you can deactivate wrapping text inside XML tags like this:
  126. File | Settings | Editor | Code Style | XML | Wrap text -> deactivate
  127. -->
  128. <Bundle-Copyright>(C) Copyright 1999-2001 Xerox Corporation, 2002 Palo Alto Research Center, Incorporated (PARC), 2003-2020 Contributors. All Rights Reserved</Bundle-Copyright>
  129. </manifestEntries>
  130. </manifestSection>
  131. </manifestSections>
  132. </archive>
  133. <descriptors>
  134. <descriptor>aspectjweaver-assembly.xml</descriptor>
  135. </descriptors>
  136. </configuration>
  137. </execution>
  138. <execution>
  139. <id>aspectjweaver-sources-assembly</id>
  140. <phase>package</phase>
  141. <goals>
  142. <goal>single</goal>
  143. </goals>
  144. <configuration>
  145. <!-- The assembly ID 'sources' becomes the artifact classifier, exactly what we want -->
  146. <appendAssemblyId>true</appendAssemblyId>
  147. <archive>
  148. </archive>
  149. <descriptors>
  150. <descriptor>aspectjweaver-sources-assembly.xml</descriptor>
  151. </descriptors>
  152. </configuration>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.codehaus.mojo</groupId>
  158. <artifactId>truezip-maven-plugin</artifactId>
  159. <executions>
  160. <execution>
  161. <id>unzip-relocated-sources</id>
  162. <phase>package</phase>
  163. <goals>
  164. <goal>copy</goal>
  165. </goals>
  166. <configuration>
  167. <!--
  168. Skip, if javadoc generation is also meant to be skipped, which is the default unless the 'release'
  169. profile is active or the property is overridden manually to be false. See property definitions in parent
  170. POM for default case and release profile.
  171. -->
  172. <skip>${maven.javadoc.skip}</skip>
  173. <verbose>true</verbose>
  174. <!-- TODO: Include 'aj' package for ASM-renamed contained in aspectjweaver? -->
  175. <fileset>
  176. <directory>${project.build.directory}/${project.build.finalName}-sources.jar/org/aspectj</directory>
  177. <outputDirectory>${project.build.directory}/unpacked-sources/org/aspectj</outputDirectory>
  178. </fileset>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-javadoc-plugin</artifactId>
  186. <version>3.2.0</version>
  187. <executions>
  188. <execution>
  189. <id>javadoc-jar</id>
  190. <phase>package</phase>
  191. <goals>
  192. <goal>jar</goal>
  193. </goals>
  194. <!--
  195. FIXME: This configuration works with JDK 16, but throws errors on other JDK versions, e.g. 14. It looks as
  196. if the Maven Javadoc plugin does not do a particularly good job applying the plugin settings in a way
  197. making it work with different JDK javadoc tool versions. I am saying that, because when using the tool
  198. directly on the console, it works with basic settings and the correct classpath.
  199. -->
  200. <configuration>
  201. <sourcepath>${project.build.directory}/unpacked-sources</sourcepath>
  202. <!-- TODO: Include 'aj' package for ASM-renamed contained in aspectjtools? -->
  203. <subpackages>org.aspectj</subpackages>
  204. <!-- Deactivate doclint checks in order to suppress errors -->
  205. <doclint>none</doclint>
  206. <!-- Generate class use xref, making javadocs considerably bigger, but also more informative -->
  207. <use>true</use>
  208. <!-- FIXME: Why does it fail without this parameter? -->
  209. <javadocVersion>8</javadocVersion>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. <!-- Caveat: Attaching the flattened POM needs packaging=jar, so do not use packaging=pom for this module -->
  215. <plugin>
  216. <groupId>org.codehaus.mojo</groupId>
  217. <artifactId>flatten-maven-plugin</artifactId>
  218. <executions>
  219. <!-- Remove dependencies declared in this POM (if any) from uber JAR and strip down POM -->
  220. <execution>
  221. <id>flatten</id>
  222. <phase>process-resources</phase>
  223. <goals>
  224. <goal>flatten</goal>
  225. </goals>
  226. <configuration>
  227. <flattenMode>oss</flattenMode>
  228. <pomElements>
  229. <dependencies>remove</dependencies>
  230. <repositories>remove</repositories>
  231. </pomElements>
  232. <outputDirectory>${project.build.directory}</outputDirectory>
  233. <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <!-- Deploy this module to Nexus (Sonatype OSSRH, releases promotable to Maven Central) -->
  239. <plugin>
  240. <groupId>org.sonatype.plugins</groupId>
  241. <artifactId>nexus-staging-maven-plugin</artifactId>
  242. </plugin>
  243. </plugins>
  244. </build>
  245. <dependencies>
  246. <dependency>
  247. <groupId>org.aspectj</groupId>
  248. <artifactId>weaver</artifactId>
  249. <version>${project.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.aspectj</groupId>
  253. <artifactId>asm-renamed</artifactId>
  254. </dependency>
  255. </dependencies>
  256. </project>