[ https://issues.apache.org/jira/browse/MNG-7316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433735#comment-17433735 ]
Rob Tompkins commented on MNG-7316: ----------------------------------- We're attaching and detaching artifacts because maven seems to include the tar files in the publish to Nexus, which we don't want because we publish them to SVN (as dictated by the Apache process). We generally think of the artifacts in nexus as "for convenience," and want to publish as little there as possible as to be frugal with our space needs because our project is so large (we have 44 sub projects). Also it occurs to me that one would want to be as flexible as possible with the mechanics of the way releases happen because dictating the way a release should happen doesn't accommodate the considerations of the masses. I certainly know that at my day job we have a considerably different set of mechanics when it comes to releasing. Thus, being able to mutate the list of artifacts would be a convenience. Furthermore, I can publish things using maven 3.6.X, but cannot with later changes to maven implying that the minor version update was in fact a breaking change (something I personally would try to avoid) > MavenProject.getAttachedArtifacts() regression with 3.8.1 > --------------------------------------------------------- > > Key: MNG-7316 > URL: https://issues.apache.org/jira/browse/MNG-7316 > Project: Maven > Issue Type: Bug > Components: Core > Affects Versions: 3.8.2, 3.8.3 > Reporter: Gary D. Gregory > Priority: Critical > > The method {{MavenProject.getAttachedArtifacts()}} as of 3.8.2 breaks > releasing components for us at Apache Commons using our Maven Release plugin > because the list returned is now immutable, we now get an exception when > calling {{remove()}} on the collection returned by the API; see > [https://github.com/apache/commons-release-plugin/blob/master/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java#L137] > This worked fine in 3.8.1, may you please change it back for 3.8.4? > We cannot use Maven 3.8.2 and 3.8.3 to release our components. > ([~michael-o]: Ironically, I discovered this trying to create a release > candidate for Apache Commons CLI.) > The exception in 3.8.3: > {quote}Caused by: java.lang.UnsupportedOperationException > at java.util.Collections$UnmodifiableCollection.remove > (Collections.java:1060) > at > org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojo.execute > (CommonsDistributionDetachmentMojo.java:136) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:137) > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005)