You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mc...@apache.org on 2011/06/07 18:34:20 UTC

svn commit: r1133086 - /incubator/ognl/trunk/pom.xml

Author: mcucchiara
Date: Tue Jun  7 16:34:20 2011
New Revision: 1133086

URL: http://svn.apache.org/viewvc?rev=1133086&view=rev
Log:
OGNL-16 - Introduced the shade plugin in order to relocate the o.a.commons package

Modified:
    incubator/ognl/trunk/pom.xml

Modified: incubator/ognl/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/pom.xml?rev=1133086&r1=1133085&r2=1133086&view=diff
==============================================================================
--- incubator/ognl/trunk/pom.xml (original)
+++ incubator/ognl/trunk/pom.xml Tue Jun  7 16:34:20 2011
@@ -188,7 +188,7 @@ limitations under the License.
     <dependency>
       <groupId>javassist</groupId>
       <artifactId>javassist</artifactId>
-      <version>3.11.0.GA</version>
+      <version>3.12.1.GA</version>
     </dependency>
   </dependencies>
 
@@ -369,6 +369,44 @@ limitations under the License.
         </plugins>
       </reporting>
     </profile>
-  </profiles>
+    <profile>
+      <id>shade</id>
+      <activation>
+        <property>
+          <name>shade</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-shade-plugin</artifactId>
+            <version>1.4</version>
 
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>shade</goal>
+                </goals>
+                <configuration>
+                  <artifactSet>
+                    <excludes>
+                      <exclude>javassist:javassist</exclude>
+                    </excludes>
+                  </artifactSet>
+                  <relocations>
+                    <relocation>
+                      <pattern>org.apache.commons.ognl</pattern>
+                      <shadedPattern>ognl</shadedPattern>
+                    </relocation>
+                  </relocations>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>