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

(maven-surefire) 01/02: reduce warnings during build

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

slachiewicz pushed a commit to branch fix1
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit fd0f43d264687b14906f17c228f7273bf6e77211
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Jun 5 10:23:56 2023 +0200

    reduce warnings during build
---
 pom.xml                       | 11 +++++++++++
 surefire-shared-utils/pom.xml |  7 +++++++
 2 files changed, 18 insertions(+)

diff --git a/pom.xml b/pom.xml
index e77fdaaab..1cbb277a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -541,6 +541,17 @@
     </profile>
     <profile>
       <id>reporting</id>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-changes-plugin</artifactId>
+              <version>2.12.1</version>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
       <reporting>
         <plugins>
           <plugin>
diff --git a/surefire-shared-utils/pom.xml b/surefire-shared-utils/pom.xml
index f95dca072..1cbcebc53 100644
--- a/surefire-shared-utils/pom.xml
+++ b/surefire-shared-utils/pom.xml
@@ -85,6 +85,13 @@
                   <shadedPattern>org.apache.maven.surefire.shared.compress</shadedPattern>
                 </relocation>
               </relocations>
+              <transformers>
+                <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
+                <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
+                  <addHeader>false</addHeader>
+                </transformer>
+                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
+              </transformers>
             </configuration>
           </execution>
         </executions>