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 2026/09/25 19:04:00 UTC

(maven-artifact-plugin) 03/03: Use inputExcludes for apache-rat 0.18

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

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

commit df4424f6f39c4a91c9990b57273281711790a7fe
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Fri Sep 25 13:01:27 2026 +0200

    Use inputExcludes for apache-rat 0.18
    
    The IT projects declared the rat plugin with a @version@ token, which
    activates it on every JDK including 8 where rat 0.18 requires Java 17.
    Keep only the configuration in pluginManagement; the check itself is
    activated by the parent's java17+ profile on JDK 17+.
    
    Signed-off-by: Sylwester Lachiewicz <sl...@apache.org>
---
 src/it/buildinfo-multi/pom.xml | 31 +++++++++++++------------------
 src/it/compare-mono/pom.xml    | 27 +++++++++------------------
 2 files changed, 22 insertions(+), 36 deletions(-)

diff --git a/src/it/buildinfo-multi/pom.xml b/src/it/buildinfo-multi/pom.xml
index 49c22a0..6921a56 100644
--- a/src/it/buildinfo-multi/pom.xml
+++ b/src/it/buildinfo-multi/pom.xml
@@ -58,6 +58,19 @@
   </properties>
 
   <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <inputExcludes combine.children="append">
+              <exclude>**/build.log.1</exclude>
+            </inputExcludes>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
         <groupId>org.spdx</groupId>
@@ -91,24 +104,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <version>@version.apache-rat-plugin@</version>
-        <configuration>
-          <excludes>
-            <exclude>**/build.log.1</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-            <phase>verify</phase>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/src/it/compare-mono/pom.xml b/src/it/compare-mono/pom.xml
index ddf37f4..dba4f44 100644
--- a/src/it/compare-mono/pom.xml
+++ b/src/it/compare-mono/pom.xml
@@ -66,6 +66,15 @@
   <build>
     <pluginManagement>
       <plugins>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <inputExcludes combine.children="append">
+              <exclude>**/build.log.1</exclude>
+            </inputExcludes>
+          </configuration>
+        </plugin>
         <plugin>
           <artifactId>maven-jar-plugin</artifactId>
           <!-- intentionally non-reproducible -->
@@ -91,24 +100,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <version>@version.apache-rat-plugin@</version>
-        <configuration>
-          <excludes>
-            <exclude>**/build.log.1</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-            <phase>verify</phase>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
 </project>