mirror of https://github.com/apache/maven.git
o Removed authorative flag from artifact, we can just use the resolved flag to stop the resolution process
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@799692 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f770dc82d6
commit
82005766ac
|
@ -151,7 +151,4 @@ public interface Artifact
|
|||
boolean isSelectedVersionKnown()
|
||||
throws OverConstrainedVersionException;
|
||||
|
||||
void setFromAuthoritativeRepository( boolean fromAuthoritativeRepository );
|
||||
|
||||
boolean isFromAuthoritativeRepository();
|
||||
}
|
|
@ -594,17 +594,4 @@ public class DefaultArtifact
|
|||
this.optional = optional;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
private boolean fromAuthoritativeRepository;
|
||||
|
||||
public void setFromAuthoritativeRepository( boolean fromAuthoritativeRepository )
|
||||
{
|
||||
this.fromAuthoritativeRepository = fromAuthoritativeRepository;
|
||||
}
|
||||
|
||||
public boolean isFromAuthoritativeRepository()
|
||||
{
|
||||
return fromAuthoritativeRepository;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ public class DefaultArtifactResolver
|
|||
|
||||
artifact = localRepository.find( artifact );
|
||||
|
||||
if ( artifact.isFromAuthoritativeRepository() )
|
||||
if ( artifact.isResolved() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -42,8 +42,6 @@ public class ReactorArtifactRepository
|
|||
{
|
||||
artifact.setFile( project.getFile() );
|
||||
|
||||
artifact.setFromAuthoritativeRepository( true );
|
||||
|
||||
artifact.setResolved( true );
|
||||
}
|
||||
else
|
||||
|
@ -60,8 +58,6 @@ public class ReactorArtifactRepository
|
|||
|
||||
artifact.setFile( projectArtifact.getFile() );
|
||||
|
||||
artifact.setFromAuthoritativeRepository( true );
|
||||
|
||||
artifact.setResolved( true );
|
||||
}
|
||||
// TODO: The code below supports MNG-3043 & MNG-2871 but in its current form causes MNG-4269.
|
||||
|
@ -83,8 +79,6 @@ public class ReactorArtifactRepository
|
|||
// {
|
||||
// artifact.setFile( classesDir );
|
||||
//
|
||||
// artifact.setFromAuthoritativeRepository( true );
|
||||
//
|
||||
// artifact.setResolved( true );
|
||||
// }
|
||||
// }
|
||||
|
|
|
@ -27,7 +27,6 @@ public class TestIdeWorkspaceRepository
|
|||
{
|
||||
artifact.setFile( ARTIFACT_FILE );
|
||||
artifact.setResolved( true );
|
||||
artifact.setFromAuthoritativeRepository( true );
|
||||
}
|
||||
return artifact;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue