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
|
@ -885,6 +885,8 @@ public class DefaultMavenProjectBuilder
|
|||
|
||||
MavenProject project = new MavenProject( superModel );
|
||||
|
||||
project.setOriginalModel( superModel );
|
||||
|
||||
try
|
||||
{
|
||||
project.setFile( new File( ".", "pom.xml" ) );
|
||||
|
|
|
@ -177,6 +177,11 @@ public class MavenProject
|
|||
|
||||
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