o look for the pom first

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-05-29 20:35:37 +00:00
parent 73adb2f34f
commit 0c021975aa
1 changed files with 32 additions and 29 deletions

View File

@ -34,6 +34,16 @@ public class ReactorArtifactRepository
MavenProject project = reactorProjects.get( projectKey );
if ( project != null )
{
if ( artifact.getType().equals( "pom" ) )
{
artifact.setFile( project.getFile() );
artifact.setFromAuthoritativeRepository( true );
artifact.setResolved( true );
}
else
{
File artifactFile = project.getArtifact().getFile();
@ -63,13 +73,6 @@ public class ReactorArtifactRepository
artifact.setResolved( true );
}
*/
else if ( artifact.getType().equals( "pom" ) )
{
artifact.setFile( project.getFile() );
artifact.setFromAuthoritativeRepository( true );
artifact.setResolved( true );
}
}