Skip to content

Commit

Permalink
[CONTINUUM-1221] We don't need to get the project with dependencies b…
Browse files Browse the repository at this point in the history
…ecause child artifacts aren't yet in the repo and we can't download them

git-svn-id: https://svn.apache.org/repos/asf/maven/continuum/trunk@521751 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Emmanuel Venisse committed Mar 23, 2007
1 parent cdaf408 commit 41512c4
Showing 1 changed file with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected List getReactorProjects( ReleaseDescriptor descriptor )
MavenProject project;
try
{
project = projectBuilder.buildWithDependencies( getProjectDescriptorFile( descriptor ),
project = projectBuilder.build( getProjectDescriptorFile( descriptor ),
getLocalRepository(), getProfileManager( settings ) );

reactorProjects.add( project );
Expand All @@ -142,14 +142,6 @@ protected List getReactorProjects( ReleaseDescriptor descriptor )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactNotFoundException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactResolutionException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}

try
{
Expand All @@ -175,10 +167,11 @@ private void addModules( List reactorProjects, MavenProject project )
String moduleDir = modules.next().toString();

File pomFile = new File( project.getBasedir(), moduleDir + "/pom.xml" );
System.out.println( pomFile.getAbsolutePath());

try
{
MavenProject reactorProject = projectBuilder.buildWithDependencies( pomFile, getLocalRepository(),
MavenProject reactorProject = projectBuilder.build( pomFile, getLocalRepository(),
getProfileManager( settings ) );

reactorProjects.add( reactorProject );
Expand All @@ -189,14 +182,6 @@ private void addModules( List reactorProjects, MavenProject project )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactNotFoundException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactResolutionException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
}
}

Expand Down

0 comments on commit 41512c4

Please sign in to comment.