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 2017/11/07 10:28:14 UTC

[sling-org-apache-sling-testing-sling-mock] 11/28: SLING-4827 - Embed all needed classes in the sling-mock-jackrabbit jar

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.testing.sling-mock-jackrabbit-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock.git

commit 9b8967d933599ef07f82ff9ed48f698a0b520e29
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Jun 22 09:42:33 2015 +0000

    SLING-4827 - Embed all needed classes in the sling-mock-jackrabbit jar
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock-jackrabbit@1686820 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/pom.xml b/pom.xml
index f9f9335..1efd0ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
   

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.