git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-11 23:25:00 +00:00
parent 1c8e6e19a0
commit 9b9df37a1c
1 changed files with 6 additions and 8 deletions

View File

@ -119,12 +119,8 @@ public class DefaultMavenProjectBuilder
previous = current;
}
pathTranslator.alignToBaseDirectory( project.getModel(), projectDescriptor );
project = processProjectLogic( project, localRepository, resolveDependencies );
project.setFile( projectDescriptor );
return project;
}
catch ( Exception e )
@ -144,7 +140,11 @@ public class DefaultMavenProjectBuilder
MavenProject parentProject = project.getParent();
File projectDescriptor = project.getFile();
pathTranslator.alignToBaseDirectory( model, projectDescriptor );
project = new MavenProject( model );
project.setFile( projectDescriptor );
project.setParent( parentProject );
project.setArtifacts( artifactFactory.createArtifacts( project.getDependencies(), localRepository, null ) );
@ -382,11 +382,9 @@ public class DefaultMavenProjectBuilder
try
{
project = processProjectLogic( project, localRepository, resolveDependencies );
project.setFile( new File( ".", "pom.xml" ) );
File projectFile = new File( ".", "pom.xml" );
project.setFile( projectFile );
pathTranslator.alignToBaseDirectory( project.getModel(), projectFile );
project = processProjectLogic( project, localRepository, resolveDependencies );
return project;
}