[ 
https://issues.apache.org/jira/browse/SLING-8068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16675231#comment-16675231
 ] 

ASF GitHub Bot commented on SLING-8068:
---------------------------------------

bosschaert closed pull request #1: SLING-8068 - adjusting shade plugin to 
relocate shaded classes and se…
URL: 
https://github.com/apache/sling-org-apache-sling-feature-extension-content/pull/1
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pom.xml b/pom.xml
index e503bdc..f5c121d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,14 +55,44 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <minimizeJar>true</minimizeJar>
-                            <filters>
+                          <minimizeJar>true</minimizeJar>
+                          <filters>
                             <filter>
                               <includes>
                                 
<include>org.apache.commons:collections:*</include>
                               </includes>
-                              </filter>
-                            </filters>
+                            </filter>
+                          </filters>
+                          <relocations>
+                            <relocation>
+                              <pattern>javax.jcr</pattern>
+                              <shadedPattern>shaded.javax.jcr</shadedPattern>
+                              <includes>
+                                <include>javax.jcr.**</include>
+                              </includes>
+                            </relocation>
+                            <relocation>
+                              <pattern>org.slf4j</pattern>
+                              <shadedPattern>shaded.org.slf4j</shadedPattern>
+                              <includes>
+                                <include>org.slf4j.**</include>
+                              </includes>
+                            </relocation>
+                            <relocation>
+                              <pattern>org.osgi</pattern>
+                              <shadedPattern>shaded.org.osgi</shadedPattern>
+                              <includes>
+                                <include>org.osgi.**</include>
+                              </includes>
+                            </relocation>
+                            <relocation>
+                              <pattern>org.apache</pattern>
+                              <shadedPattern>shaded.org.apache</shadedPattern>
+                              <excludes>
+                                <exclude>org.apache.sling.feature.**</exclude>
+                              </excludes>
+                            </relocation>
+                          </relocations>
                         </configuration>
                     </execution>
                 </executions>
@@ -88,19 +118,19 @@
            <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.feature.launcher</artifactId>
-            <version>0.1.1-SNAPSHOT</version>
+            <version>0.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.feature.io</artifactId>
-            <version>0.1.3-SNAPSHOT</version>
+            <version>0.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.feature</artifactId>
-            <version>0.1.3-SNAPSHOT</version>
+            <version>0.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Relocate shaded classes in feature content extension to prevent classloading 
> conflicts
> --------------------------------------------------------------------------------------
>
>                 Key: SLING-8068
>                 URL: https://issues.apache.org/jira/browse/SLING-8068
>             Project: Sling
>          Issue Type: Improvement
>          Components: Feature Model
>            Reporter: Dominik Süß
>            Priority: Major
>
> The Content Deployment Extension currently shades various classes that are 
> required to build up the registry but are not added to the classpath by the 
> launcher and therefore might cause classpath conflicts with other extensions 
> or future versions of the launcher. Providing them via classpath would be 
> viable but reduce the usability of the extension in CLI quite a lot. 
> Therefore the shaded classes should be relocated via the shade plugin. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to