You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/03/02 10:49:09 UTC
svn commit: r917935 - /myfaces/extensions/scripting/trunk/core/core/pom.xml
Author: werpu
Date: Tue Mar 2 09:49:08 2010
New Revision: 917935
URL: http://svn.apache.org/viewvc?rev=917935&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-75
adding package relocation for asm
Modified:
myfaces/extensions/scripting/trunk/core/core/pom.xml
Modified: myfaces/extensions/scripting/trunk/core/core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/core/pom.xml?rev=917935&r1=917934&r2=917935&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/core/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/core/core/pom.xml Tue Mar 2 09:49:08 2010
@@ -72,6 +72,11 @@
</dependencies>
<build>
+
+ <!-- To define the plugin version in your parent POM -->
+
+
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -105,6 +110,40 @@
</dependencies>
</plugin>
+ <!--
+ we reuse the maven shader plugin to get rid of the
+ asm transitive dependency in the final build
+ what we will do simply is to relocate the original
+ asm packages into our own namespace to avoid
+ name conflicts
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>1.3.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <artifactSet>
+ <includes>
+ <artifact>asm:asm</artifact>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org.objectweb.asm</pattern>
+ <shadedPattern>org.apache.myfaces.scripting.org.objectweb.asm</shadedPattern>
+ </relocation>
+ </relocations>
+
+ </configuration>
+ </plugin>
</plugins>
</build>