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:
John Dennis Casey 2005-08-09 20:56:12 +00:00
parent 0f9196a83d
commit 9b92bf860e
2 changed files with 7 additions and 0 deletions

View File

@ -885,6 +885,8 @@ public class DefaultMavenProjectBuilder
MavenProject project = new MavenProject( superModel );
project.setOriginalModel( superModel );
try
{
project.setFile( new File( ".", "pom.xml" ) );

View File

@ -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;
}