mirror of https://github.com/apache/maven.git
Fixed MNG-687:
MavenProject( MavenProject ) constructor creates an unmodifyable attachedArtifacts, making it impossible for plugins to attach artifacts. This constructor is only referenced from DefaultLifeCycleExecutor in forkLifeCycle, so it's a safe change. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@226989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
872e0972c8
commit
869525558b
|
@ -152,10 +152,12 @@ public class MavenProject
|
|||
this.pluginArtifacts = Collections.unmodifiableSet( project.pluginArtifacts );
|
||||
this.remoteArtifactRepositories = Collections.unmodifiableList( project.remoteArtifactRepositories );
|
||||
this.pluginArtifactRepositories = Collections.unmodifiableList( project.pluginArtifactRepositories );
|
||||
this.attachedArtifacts = Collections.unmodifiableList( project.getAttachedArtifacts() );
|
||||
this.collectedProjects = Collections.unmodifiableList( project.collectedProjects );
|
||||
this.activeProfiles = Collections.unmodifiableList( project.activeProfiles );
|
||||
|
||||
// clone properties modifyable by plugins in a forked lifecycle
|
||||
this.attachedArtifacts = new ArrayList( project.getAttachedArtifacts() );
|
||||
|
||||
// no need for execution project
|
||||
|
||||
// clone source roots
|
||||
|
|
Loading…
Reference in New Issue