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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-release-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new d893b4b  Maven 3.8.3 throws an exception here because 
MavenProject.getAttachedArtifacts() returns an IMMUTABLE collection.
d893b4b is described below

commit d893b4b0a9f01c6b22ff6486e5c5fb9dee6ceb3a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Oct 23 09:39:21 2021 -0400

    Maven 3.8.3 throws an exception here because
    MavenProject.getAttachedArtifacts() returns an IMMUTABLE collection.
---
 .../commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
index a044793..75fec51 100755
--- 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -133,6 +133,7 @@ public class CommonsDistributionDetachmentMojo extends 
AbstractMojo {
             return;
         }
         for (final Artifact artifactToRemove : detachedArtifacts) {
+            // Maven 3.8.3 throws an exception here because 
MavenProject.getAttachedArtifacts() returns an IMMUTABLE collection.
             project.getAttachedArtifacts().remove(artifactToRemove);
         }
         if (!workingDirectory.exists()) {

Reply via email to