diff options
Diffstat (limited to 'aspectjweaver')
-rw-r--r-- | aspectjweaver/aspectjweaver-assembly.xml | 2 | ||||
-rw-r--r-- | aspectjweaver/pom.xml | 50 |
2 files changed, 48 insertions, 4 deletions
diff --git a/aspectjweaver/aspectjweaver-assembly.xml b/aspectjweaver/aspectjweaver-assembly.xml index 332504316..3433f6555 100644 --- a/aspectjweaver/aspectjweaver-assembly.xml +++ b/aspectjweaver/aspectjweaver-assembly.xml @@ -16,7 +16,7 @@ <!-- Avoid warning when trying to add non-existing main artifact JAR --> <useProjectArtifact>false</useProjectArtifact> <includes> - <include>org.aspectj:asm-renamed</include> + <include>org.ow2.asm:asm</include> </includes> </dependencySet> </dependencySets> diff --git a/aspectjweaver/pom.xml b/aspectjweaver/pom.xml index 5e4ec2e40..996cc6d87 100644 --- a/aspectjweaver/pom.xml +++ b/aspectjweaver/pom.xml @@ -82,7 +82,8 @@ <configuration> <classifier>sources</classifier> <!--<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>--> - <includeArtifactIds>asm-renamed</includeArtifactIds> + <includeGroupIds>org.ow2.asm</includeGroupIds> + <includeArtifactIds>asm</includeArtifactIds> <outputDirectory>${project.build.directory}/unzipped-sources</outputDirectory> <!-- Avoid accidentally shading test-scoped dependencies like JUnit --> <includeScope>runtime</includeScope> @@ -175,6 +176,49 @@ </executions> </plugin> + <!-- + Relocate ASM from 'org.objectweb.asm' to 'aj.org.objectweb.asm' + + TODO: Using Maven Shade after Maven Assembly instead of creating uber JAR and relocating package names at the + same time is suboptimal and maybe slower than doing both at the same time. Migrating from Assembly to Shade + requires all dependencies to produce source JARs, though, which currently is not the case. Because we also + want to create a complete source JAR, for now we keep Assembly around, because it manually copies project + sources from their respective directories before zipping them up. + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <configuration> + <createSourcesJar>true</createSourcesJar> + <createDependencyReducedPom>false</createDependencyReducedPom> + <shadedArtifactAttached>false</shadedArtifactAttached> + </configuration> + <executions> + <execution> + <id>asm-relocate</id> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <minimizeJar>false</minimizeJar> + <shadeSourcesContent>true</shadeSourcesContent> + <artifactSet> + <includes> + <include>${project.groupId}:${project.artifactId}</include> + </includes> + </artifactSet> + <relocations> + <relocation> + <pattern>org.objectweb.asm</pattern> + <shadedPattern>aj.org.objectweb.asm</shadedPattern> + </relocation> + </relocations> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>truezip-maven-plugin</artifactId> @@ -276,8 +320,8 @@ <version>${project.version}</version> </dependency> <dependency> - <groupId>org.aspectj</groupId> - <artifactId>asm-renamed</artifactId> + <groupId>org.ow2.asm</groupId> + <artifactId>asm</artifactId> </dependency> </dependencies> |