Author: mbenson
Date: Tue Feb 18 22:56:38 2014
New Revision: 1569550
URL: http://svn.apache.org/r1569550
Log:
upgrade asm; shade dependencies for weaver modules for best portability and
predictability
Modified:
commons/proper/weaver/trunk/ant/test/pom.xml
commons/proper/weaver/trunk/modules/normalizer/weaver/ (props changed)
commons/proper/weaver/trunk/modules/normalizer/weaver/pom.xml
commons/proper/weaver/trunk/modules/privilizer/weaver/ (props changed)
commons/proper/weaver/trunk/modules/privilizer/weaver/pom.xml
commons/proper/weaver/trunk/pom.xml
Modified: commons/proper/weaver/trunk/ant/test/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/ant/test/pom.xml?rev=1569550&r1=1569549&r2=1569550&view=diff
==============================================================================
--- commons/proper/weaver/trunk/ant/test/pom.xml (original)
+++ commons/proper/weaver/trunk/ant/test/pom.xml Tue Feb 18 22:56:38 2014
@@ -202,6 +202,11 @@ under the License.
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
+ <artifactId>commons-weaver-antlib</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
<artifactId>commons-weaver-privilizer</artifactId>
<version>${project.version}</version>
</dependency>
Propchange: commons/proper/weaver/trunk/modules/normalizer/weaver/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Feb 18 22:56:38 2014
@@ -10,3 +10,4 @@ target
*.log
.git
.gitignore
+dependency-reduced-pom.xml
Modified: commons/proper/weaver/trunk/modules/normalizer/weaver/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/modules/normalizer/weaver/pom.xml?rev=1569550&r1=1569549&r2=1569550&view=diff
==============================================================================
--- commons/proper/weaver/trunk/modules/normalizer/weaver/pom.xml (original)
+++ commons/proper/weaver/trunk/modules/normalizer/weaver/pom.xml Tue Feb 18
22:56:38 2014
@@ -40,6 +40,7 @@ under the License.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-weaver-processor</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
@@ -86,6 +87,83 @@ under the License.
</dependencies>
</profile>
</profiles>
+ <build>
+ <plugins>
+ <!-- shade plugin creates but does not clean
${basedir}/dependency-reduced-pom.xml -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>dependency-reduced-pom.xml</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <id>shade</id>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <minimizeJar>true</minimizeJar>
+
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+ <artifactSet>
+ <includes>
+ <include>org.apache.commons:commons-lang3</include>
+ <include>commons-io:commons-io</include>
+ <include>org.ow2.asm:*</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.commons.lang3.</pattern>
+
<shadedPattern>org.apache.commons.weaver.normalizer._lang3.</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.commons.io.</pattern>
+
<shadedPattern>org.apache.commons.weaver.normalizer._io.</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.objectweb.asm.</pattern>
+
<shadedPattern>org.apache.commons.weaver.normalizer._asm.</shadedPattern>
+ </relocation>
+ </relocations>
+ <filters>
+ <filter>
+ <artifact>org.apache.commons:commons-lang3</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>commons-io:commons-io</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>org.ow2.asm:*</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
<reporting>
<plugins>
<plugin>
Propchange: commons/proper/weaver/trunk/modules/privilizer/weaver/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Feb 18 22:56:38 2014
@@ -10,4 +10,4 @@ target
*.log
.git
.gitignore
-
+dependency-reduced-pom.xml
Modified: commons/proper/weaver/trunk/modules/privilizer/weaver/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/modules/privilizer/weaver/pom.xml?rev=1569550&r1=1569549&r2=1569550&view=diff
==============================================================================
--- commons/proper/weaver/trunk/modules/privilizer/weaver/pom.xml (original)
+++ commons/proper/weaver/trunk/modules/privilizer/weaver/pom.xml Tue Feb 18
22:56:38 2014
@@ -46,6 +46,7 @@ under the License.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-weaver-processor</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
@@ -79,6 +80,10 @@ under the License.
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm-analysis</artifactId>
+ </dependency>
</dependencies>
</profile>
<profile>
@@ -113,6 +118,79 @@ under the License.
</execution>
</executions>
</plugin>
+ <!-- shade plugin creates but does not clean
${basedir}/dependency-reduced-pom.xml -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>dependency-reduced-pom.xml</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <id>shade</id>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <minimizeJar>true</minimizeJar>
+
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+ <artifactSet>
+ <includes>
+ <include>org.apache.commons:commons-lang3</include>
+ <include>commons-io:commons-io</include>
+ <include>org.ow2.asm:*</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.commons.lang3.</pattern>
+
<shadedPattern>org.apache.commons.weaver.privilizer._lang3.</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.commons.io.</pattern>
+
<shadedPattern>org.apache.commons.weaver.privilizer._io.</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.objectweb.asm.</pattern>
+
<shadedPattern>org.apache.commons.weaver.privilizer._asm.</shadedPattern>
+ </relocation>
+ </relocations>
+ <filters>
+ <filter>
+ <artifact>org.apache.commons:commons-lang3</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>commons-io:commons-io</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>org.ow2.asm:*</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<reporting>
Modified: commons/proper/weaver/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/weaver/trunk/pom.xml?rev=1569550&r1=1569549&r2=1569550&view=diff
==============================================================================
--- commons/proper/weaver/trunk/pom.xml (original)
+++ commons/proper/weaver/trunk/pom.xml Tue Feb 18 22:56:38 2014
@@ -51,7 +51,7 @@ under the License.
<commons.jira.id>WEAVER</commons.jira.id>
<commons.jira.pid>12315320</commons.jira.pid>
<commons.site.path>commons-weaver</commons.site.path>
- <asm.version>4.1</asm.version>
+ <asm.version>4.2</asm.version>
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${commons.site.path}</commons.scmPubUrl>
<commons.project-info.version>2.6</commons.project-info.version>
@@ -233,6 +233,11 @@ under the License.
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
+ <artifactId>asm-analysis</artifactId>
+ <version>${asm.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ow2.asm</groupId>
<artifactId>asm-debug-all</artifactId>
<version>${asm.version}</version>
</dependency>