mirror of https://github.com/apache/maven.git
refactor
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c8e6e19a0
commit
9b9df37a1c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue