mirror of https://github.com/apache/maven.git
Adding better handling for originalModel in MavenProject.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@231112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0f9196a83d
commit
9b92bf860e
|
@ -884,6 +884,8 @@ public class DefaultMavenProjectBuilder
|
|||
superModel.setVersion( STANDALONE_SUPERPOM_VERSION );
|
||||
|
||||
MavenProject project = new MavenProject( superModel );
|
||||
|
||||
project.setOriginalModel( superModel );
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -176,6 +176,11 @@ public class MavenProject
|
|||
this.profileProperties = new Properties( project.profileProperties );
|
||||
|
||||
this.model = ModelUtils.cloneModel( project.model );
|
||||
|
||||
if ( project.originalModel != null )
|
||||
{
|
||||
this.originalModel = ModelUtils.cloneModel( project.originalModel );
|
||||
}
|
||||
|
||||
// TODO: need to clone this too?
|
||||
this.artifact = project.artifact;
|
||||
|
|
Loading…
Reference in New Issue