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

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git


The following commit(s) were added to refs/heads/master by this push:
     new 006f4f6  [MEECROWAVE-274] adding servlet only runner shade too
006f4f6 is described below

commit 006f4f6a984af9c4b596423598d47e8ae9f0f878
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Tue Dec 15 17:52:11 2020 +0100

    [MEECROWAVE-274] adding servlet only runner shade too
---
 meecrowave-core/pom.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 55 insertions(+), 1 deletion(-)

diff --git a/meecrowave-core/pom.xml b/meecrowave-core/pom.xml
index 10a8479..040be53 100644
--- a/meecrowave-core/pom.xml
+++ b/meecrowave-core/pom.xml
@@ -453,7 +453,7 @@
             <configuration>
               <shadedClassifierName>runner-light</shadedClassifierName>
               <shadedArtifactAttached>true</shadedArtifactAttached>
-              
<dependencyReducedPomLocation>${project.build.directory}/reduced-pom-bundle.xml
+              
<dependencyReducedPomLocation>${project.build.directory}/reduced-pom-bundle-light.xml
               </dependencyReducedPomLocation>
               <transformers>
                 <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
@@ -507,6 +507,60 @@
               </relocations>
             </configuration>
           </execution>
+          <execution>
+            <id>servlet-only</id>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <shadedClassifierName>servlet</shadedClassifierName>
+              <shadedArtifactAttached>true</shadedArtifactAttached>
+              
<dependencyReducedPomLocation>${project.build.directory}/reduced-pom-bundle-servlet.xml
+              </dependencyReducedPomLocation>
+              <transformers>
+                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                  <mainClass>org.apache.meecrowave.runner.Cli</mainClass>
+                </transformer>
+                <transformer 
implementation="org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer"
 />
+                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
 />
+              </transformers>
+              <filters>
+                <filter>
+                  <artifact>*:*</artifact>
+                  <excludes>
+                    <exclude>javax/servlet/resources/**</exclude> <!-- 
tomcat-servlet-api: to discuss if kepts or not -->
+                    <exclude>javax/servlet/jsp/resources/**</exclude>
+                    <exclude>META-INF/maven</exclude> <!-- maven built 
artifacts -->
+                    <exclude>META-INF/*.SF</exclude>
+                    <exclude>META-INF/*.DSA</exclude>
+                    <exclude>META-INF/*.RSA</exclude>
+                    <exclude>META-INF/LICENSE.txt</exclude>
+                    <exclude>META-INF/LICENSE</exclude>
+                    <exclude>META-INF/NOTICE.txt</exclude>
+                    <exclude>META-INF/NOTICE</exclude>
+                  </excludes>
+                </filter>
+              </filters>
+              <artifactSet>
+                <excludes>
+                  <exclude>org.apache.cxf:*</exclude>
+                  <exclude>org.apache.logging.log4j:*</exclude>
+                  <exclude>org.apache.johnzon:*</exclude>
+                </excludes>
+              </artifactSet>
+              <relocations>
+                <relocation>
+                  
<pattern>org.apache.meecrowave.tomcat.light.LightDigester</pattern>
+                  
<shadedPattern>org.apache.tomcat.util.descriptor.DigesterFactory</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>org.apache.commons</pattern>
+                  
<shadedPattern>org.apache.meecrowave.shaded.commons</shadedPattern>
+                </relocation>
+              </relocations>
+            </configuration>
+          </execution>
         </executions>
         <dependencies>
           <dependency>

Reply via email to