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-artifact-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new d735ec1  [MARTIFACT-76] fix consumer pom detection
d735ec1 is described below

commit d735ec1574b6130ae3c04e2acce25568a32965e9
Author: Hervé Boutemy <hbout...@apache.org>
AuthorDate: Sun Oct 27 17:13:28 2024 +0100

    [MARTIFACT-76] fix consumer pom detection
---
 .../org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java
 
b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java
index 20871c4..bcb3c52 100644
--- 
a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java
+++ 
b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildInfoWriter.java
@@ -214,7 +214,7 @@ class BuildInfoWriter {
         }
 
         for (Artifact attached : 
RepositoryUtils.toArtifacts(project.getAttachedArtifacts())) {
-            if (attached == consumerPom) {
+            if ("pom".equals(attached.getExtension()) && 
"consumer".equals(attached.getClassifier())) {
                 // ignore consumer pom
                 continue;
             }

Reply via email to