You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/06/07 20:33:03 UTC

[maven-reporting-exec] branch master updated: [MSHARED-921] use shaded Xpp3DomUtils to avoid depending on classloader

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

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f06039  [MSHARED-921] use shaded Xpp3DomUtils to avoid depending on classloader
6f06039 is described below

commit 6f06039bd9439ce06fd702ece8d8894a3a684626
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Jun 7 22:32:58 2020 +0200

    [MSHARED-921] use shaded Xpp3DomUtils to avoid depending on classloader
---
 pom.xml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/pom.xml b/pom.xml
index 674b45a..9ba1610 100644
--- a/pom.xml
+++ b/pom.xml
@@ -110,6 +110,11 @@
       <artifactId>plexus-component-annotations</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>3.1.0</version><!-- do not upgrade to 3.2.0+ because it adds Xpp3Dom.getInputLocation(): see MSHARED-921 -->
+    </dependency>
 
     <!-- Sonatype Aether for Maven 3.0.x -->
     <dependency>
@@ -272,6 +277,39 @@
 
   <build>
     <plugins>
+      <plugin><!-- shade Xpp3DomUtils that does not require Xpp3Dom.getInputLocation(): see MSHARED-921 -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <artifactSet>
+                <includes>
+                  <include>org.codehaus.plexus:plexus-utils</include>
+                </includes>
+              </artifactSet>
+              <filters>
+                <filter>
+                  <artifact>org.codehaus.plexus:plexus-utils</artifact>
+                  <includes>
+                    <include>org/codehaus/plexus/util/xml/Xpp3DomUtils.class</include>
+                  </includes>
+                </filter>
+              </filters>
+              <relocations>
+                <relocation>
+                  <pattern>org.codehaus.plexus.xml</pattern>
+                  <shadedPattern>org.apache.maven.reporting.exec.xml</shadedPattern>
+                </relocation>
+              </relocations>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>