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/22 11:42:34 UTC

svn commit: r1686820 - /sling/trunk/testing/mocks/sling-mock-jackrabbit/pom.xml

Author: rombert
Date: Mon Jun 22 09:42:33 2015
New Revision: 1686820

URL: http://svn.apache.org/r1686820
Log:
SLING-4827 - Embed all needed classes in the sling-mock-jackrabbit jar

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

Modified: sling/trunk/testing/mocks/sling-mock-jackrabbit/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/testing/mocks/sling-mock-jackrabbit/pom.xml?rev=1686820&r1=1686819&r2=1686820&view=diff
==============================================================================
--- sling/trunk/testing/mocks/sling-mock-jackrabbit/pom.xml (original)
+++ sling/trunk/testing/mocks/sling-mock-jackrabbit/pom.xml Mon Jun 22 09:42:33 2015
@@ -135,6 +135,34 @@
             </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>