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

@ -884,6 +884,8 @@ public class DefaultMavenProjectBuilder
superModel.setVersion( STANDALONE_SUPERPOM_VERSION );
MavenProject project = new MavenProject( superModel );
project.setOriginalModel( superModel );
try
{

View File

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