Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. <!-- The AspectJ root POM is the parent, but this module is not a submodule -->
  6. <parent>
  7. <groupId>org.aspectj</groupId>
  8. <artifactId>aspectj-parent</artifactId>
  9. <version>1.9.7.BUILD-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>asm-renamed</artifactId>
  12. <version>${asm.version}</version>
  13. <name>ASM for AspectJ</name>
  14. <description>
  15. This module relocates the original ASM artifact from package name 'org.objectweb.asm' to 'aj.org.objectweb.asm',
  16. using Maven Shade Plugin.
  17. In order to avoid committing the binary to the AspectJ SCM repository and using it as a system-scoped dependency, we
  18. deploy it to GitHub Packages.
  19. Whenever it is necessary to upgrade to a new ASM version in order to make AspectJ compatible with a new Java
  20. version, please build and deploy this module after upgrading property 'asm.version'. Make sure you have a GitHub
  21. token with the necessary access rights and section like this in your settings.xml:
  22. <![CDATA[
  23. <server>
  24. <id>github</id>
  25. <username>MY_GITHUB_USER</username>
  26. <password>MY_GITHUB_TOKEN</password>
  27. </server>
  28. ]]>
  29. Then you should be able to run 'mvn clean deploy' for this module and be fine.
  30. Caveat for IntelliJ IDEA: The project cannot be built in IDEA (Ctrl-F9) if this module is visible in the Maven view.
  31. If so, right-click it and select "Unlink Maven Projects". Unfortunately, "Ignore Projects" is not enough. If Maven
  32. knows of this Maven module, it cannot compile other modules depending on shaded class names, because it cannot find
  33. the binaries. IDEA will just stop looking at the local Maven repository in this case.
  34. </description>
  35. <distributionManagement>
  36. <repository>
  37. <id>github</id>
  38. <name>GitHub Packages Release</name>
  39. <url>https://maven.pkg.github.com/kriegaex/aspectj-packages</url>
  40. <uniqueVersion>false</uniqueVersion>
  41. </repository>
  42. <snapshotRepository>
  43. <id>github</id>
  44. <name>GitHub Packages Snapshot</name>
  45. <url>https://maven.pkg.github.com/kriegaex/aspectj-packages</url>
  46. <uniqueVersion>true</uniqueVersion>
  47. </snapshotRepository>
  48. </distributionManagement>
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <executions>
  55. <!-- Nothing to compile in this module -->
  56. <execution>
  57. <id>default-compile</id>
  58. <phase>none</phase>
  59. </execution>
  60. <execution>
  61. <id>default-testCompile</id>
  62. <phase>none</phase>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-source-plugin</artifactId>
  69. <configuration>
  70. <!-- Re-create original source JAR in order to avoid re-shading already shaded JAR in non-clean builds -->
  71. <forceCreation>true</forceCreation>
  72. <!--
  73. Avoid attaching the source JAR here, because Maven Shade will add the source uber JAR later. Because both
  74. JARs have the same final name, Maven Install/Deploy would see two artifacts attached to the build, which
  75. would lead to double deployment and hence to an error "Transfer failed for ...-sources.jar 409 Conflict".
  76. See also https://issues.apache.org/jira/browse/MDEPLOY-254 and comments by Alexander Kriegisch.
  77. -->
  78. <attach>false</attach>
  79. <archive>
  80. <addMavenDescriptor>false</addMavenDescriptor>
  81. </archive>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <id>attach-sources</id>
  86. <phase>package</phase>
  87. <goals>
  88. <goal>jar-no-fork</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-jar-plugin</artifactId>
  96. <configuration>
  97. <archive>
  98. <addMavenDescriptor>false</addMavenDescriptor>
  99. </archive>
  100. <!-- Re-create original JAR in order to avoid re-shading already shaded JAR in non-clean builds -->
  101. <forceCreation>true</forceCreation>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <!-- Avoid creating test JAR -->
  106. <id>test-jar</id>
  107. <phase>none</phase>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-shade-plugin</artifactId>
  114. <configuration>
  115. <createSourcesJar>true</createSourcesJar>
  116. <createDependencyReducedPom>false</createDependencyReducedPom>
  117. <shadedArtifactAttached>false</shadedArtifactAttached>
  118. </configuration>
  119. <executions>
  120. <execution>
  121. <id>asm-relocate</id>
  122. <phase>package</phase>
  123. <goals>
  124. <goal>shade</goal>
  125. </goals>
  126. <configuration>
  127. <minimizeJar>false</minimizeJar>
  128. <shadeSourcesContent>true</shadeSourcesContent>
  129. <artifactSet>
  130. <excludes>
  131. <exclude>${project.groupId}</exclude>
  132. </excludes>
  133. </artifactSet>
  134. <filters>
  135. <filter>
  136. <artifact>*</artifact>
  137. <excludes>
  138. <exclude>META-INF/*</exclude>
  139. </excludes>
  140. </filter>
  141. </filters>
  142. <relocations>
  143. <relocation>
  144. <pattern>org.objectweb.asm</pattern>
  145. <shadedPattern>aj.org.objectweb.asm</shadedPattern>
  146. </relocation>
  147. </relocations>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.codehaus.mojo</groupId>
  154. <artifactId>flatten-maven-plugin</artifactId>
  155. <version>1.2.2</version>
  156. <executions>
  157. <!-- Remove shaded dependencies from uber JAR -->
  158. <execution>
  159. <id>flatten</id>
  160. <phase>process-resources</phase>
  161. <goals>
  162. <goal>flatten</goal>
  163. </goals>
  164. <configuration>
  165. <flattenMode>oss</flattenMode>
  166. <pomElements>
  167. <dependencies>remove</dependencies>
  168. </pomElements>
  169. <outputDirectory>${project.build.directory}</outputDirectory>
  170. <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </build>
  177. <dependencies>
  178. <dependency>
  179. <groupId>org.ow2.asm</groupId>
  180. <artifactId>asm</artifactId>
  181. </dependency>
  182. </dependencies>
  183. </project>