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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.aspectj</groupId>
  8. <artifactId>aspectj-parent</artifactId>
  9. <version>1.9.7.BUILD-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>aspectjtools</artifactId>
  12. <name>AspectJ Tools (Compiler)</name>
  13. <build>
  14. <plugins>
  15. <!-- Skip creation of main + test JARs -->
  16. <plugin>
  17. <groupId>org.apache.maven.plugins</groupId>
  18. <artifactId>maven-jar-plugin</artifactId>
  19. <executions>
  20. <execution>
  21. <id>default-jar</id>
  22. <phase>none</phase>
  23. </execution>
  24. <execution>
  25. <id>test-jar</id>
  26. <phase>none</phase>
  27. </execution>
  28. </executions>
  29. </plugin>
  30. <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-dependency-plugin</artifactId>
  33. <executions>
  34. <execution>
  35. <id>unzip-dependency-sources</id>
  36. <goals>
  37. <goal>unpack-dependencies</goal>
  38. </goals>
  39. <phase>prepare-package</phase>
  40. <configuration>
  41. <classifier>sources</classifier>
  42. <!--<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>-->
  43. <includeArtifactIds>org.eclipse.jdt.core,asm-renamed</includeArtifactIds>
  44. <outputDirectory>${project.build.directory}/unzipped-sources</outputDirectory>
  45. <!-- Avoid accidentally shading test-scoped dependencies like JUnit -->
  46. <includeScope>runtime</includeScope>
  47. </configuration>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-assembly-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <id>aspectjtools-assembly</id>
  57. <phase>package</phase>
  58. <goals>
  59. <goal>single</goal>
  60. </goals>
  61. <configuration>
  62. <finalName>aspectjtools-${project.version}</finalName>
  63. <appendAssemblyId>false</appendAssemblyId>
  64. <archive>
  65. <manifestEntries>
  66. <Automatic-Module-Name>org.aspectj.tools</Automatic-Module-Name>
  67. </manifestEntries>
  68. <manifestSections>
  69. <manifestSection>
  70. <name>org/aspectj/tools/</name>
  71. <manifestEntries>
  72. <Specification-Title>AspectJ Tools Classes</Specification-Title>
  73. <Specification-Version>${project.version}</Specification-Version>
  74. <Specification-Vendor>https://www.eclipse.org/aspectj/</Specification-Vendor>
  75. <Implementation-Title>org.aspectj.tools</Implementation-Title>
  76. <Implementation-Version>${project.version}</Implementation-Version>
  77. <Implementation-Vendor>https://www.eclipse.org/aspectj/</Implementation-Vendor>
  78. <Bundle-Name>AspectJ Tools</Bundle-Name>
  79. <Bundle-Version>${project.version}</Bundle-Version>
  80. <!--
  81. WARNING: Please avoid line breaks in manifest values! They are passed on like this:
  82. Assembly Plugin -> Plexus Archiver -> JRE java.util.jar.Manifest.write(OutputStream).
  83. The JRE Manifest class inserts hard line breaks always after 72 characters, no matter if those
  84. 72 characters contain line feeds, tabs or spaces. Hence, it can happen that unwanted blank lines
  85. end up in the middle of a manifest section, making the manifest invalid. Calls like e.g.
  86. 'java -cp aspectjtools.jar org.aspectj.tools.ajc.Main' can then fail with the absolutely
  87. unexpected error 'Could not find or load main class org.aspectj.tools.ajc.Main'.
  88. Alexander Kriegisch created this bug ticket:
  89. https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8263924
  90. In IntelliJ IDEA you can deactivate wrapping text inside XML tags like this:
  91. File | Settings | Editor | Code Style | XML | Wrap text -> deactivate
  92. -->
  93. <Bundle-Copyright>(C) Copyright 1999-2001 Xerox Corporation, 2002 Palo Alto Research Center, Incorporated (PARC), 2003-2020 Contributors. All Rights Reserved</Bundle-Copyright>
  94. </manifestEntries>
  95. </manifestSection>
  96. </manifestSections>
  97. </archive>
  98. <descriptors>
  99. <descriptor>aspectjtools-assembly.xml</descriptor>
  100. </descriptors>
  101. </configuration>
  102. </execution>
  103. <execution>
  104. <id>aspectjtools-sources-assembly</id>
  105. <phase>package</phase>
  106. <goals>
  107. <goal>single</goal>
  108. </goals>
  109. <configuration>
  110. <!-- The assembly ID 'sources' becomes the artifact classifier, exactly what we want -->
  111. <appendAssemblyId>true</appendAssemblyId>
  112. <archive>
  113. </archive>
  114. <descriptors>
  115. <descriptor>aspectjtools-sources-assembly.xml</descriptor>
  116. </descriptors>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <!-- Caveat: Attaching the flattened POM needs packaging=jar, so do not use packaging=pom for this module -->
  122. <plugin>
  123. <groupId>org.codehaus.mojo</groupId>
  124. <artifactId>flatten-maven-plugin</artifactId>
  125. <executions>
  126. <!-- Remove dependencies declared in this POM (if any) from uber JAR and strip down POM -->
  127. <execution>
  128. <id>flatten</id>
  129. <phase>process-resources</phase>
  130. <goals>
  131. <goal>flatten</goal>
  132. </goals>
  133. <configuration>
  134. <flattenMode>oss</flattenMode>
  135. <pomElements>
  136. <dependencies>remove</dependencies>
  137. <repositories>remove</repositories>
  138. </pomElements>
  139. <outputDirectory>${project.build.directory}</outputDirectory>
  140. <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. <dependencies>
  148. <dependency>
  149. <groupId>org.aspectj</groupId>
  150. <artifactId>org.aspectj.ajdt.core</artifactId>
  151. <version>${project.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.aspectj</groupId>
  155. <artifactId>org.eclipse.jdt.core</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.aspectj</groupId>
  159. <artifactId>asm-renamed</artifactId>
  160. </dependency>
  161. </dependencies>
  162. </project>