You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2015/06/19 16:18:28 UTC

svn commit: r1686422 - /sling/trunk/testing/mocks/sling-mock-oak/pom.xml

Author: rombert
Date: Fri Jun 19 14:18:27 2015
New Revision: 1686422

URL: http://svn.apache.org/r1686422
Log:
SLING-4824 - Embed all needed classes in the sling-oak-mock jar

Modified:
    sling/trunk/testing/mocks/sling-mock-oak/pom.xml

Modified: sling/trunk/testing/mocks/sling-mock-oak/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/testing/mocks/sling-mock-oak/pom.xml?rev=1686422&r1=1686421&r2=1686422&view=diff
==============================================================================
--- sling/trunk/testing/mocks/sling-mock-oak/pom.xml (original)
+++ sling/trunk/testing/mocks/sling-mock-oak/pom.xml Fri Jun 19 14:18:27 2015
@@ -156,7 +156,35 @@
               </execution>
             </executions>
           </plugin>
-    
+
+          <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-shade-plugin</artifactId>
+              <version>2.4</version>
+              <configuration>
+                <!--
+                    embed all jackrabbit artifacts to prevent classpath clashes
+                    also include selected Sling bundles which are required
+                    at runtime. Note that we don't relocate the packages
+                    since org.apache.sling.jcr.resource already embeds some
+                    jackrabbit classes which lead to a non-working jar
+                -->
+                <artifactSet>
+                    <includes>
+                        <include>org.apache.jackrabbit:*</include>
+                        <include>org.apache.sling:org.apache.sling.jcr.resource</include>
+                    </includes>
+                </artifactSet>
+              </configuration>
+              <executions>
+                <execution>
+                    <phase>package</phase>
+                    <goals>
+                        <goal>shade</goal>
+                    </goals>
+                </execution>
+              </executions>
+          </plugin>
         </plugins>
     </build>