mirror of https://github.com/apache/maven.git
o clean up unused methods in the resolution request
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a731303a7
commit
cfbb4c4f54
|
@ -23,12 +23,6 @@ public class ArtifactResolutionRequest
|
||||||
|
|
||||||
private Set<Artifact> artifactDependencies;
|
private Set<Artifact> artifactDependencies;
|
||||||
|
|
||||||
private String groupId;
|
|
||||||
|
|
||||||
private String artifactId;
|
|
||||||
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
private ArtifactRepository localRepository;
|
private ArtifactRepository localRepository;
|
||||||
|
|
||||||
private List<ArtifactRepository> remoteRepositories;
|
private List<ArtifactRepository> remoteRepositories;
|
||||||
|
@ -37,13 +31,12 @@ public class ArtifactResolutionRequest
|
||||||
|
|
||||||
private List<ResolutionListener> listeners = new ArrayList<ResolutionListener>();
|
private List<ResolutionListener> listeners = new ArrayList<ResolutionListener>();
|
||||||
|
|
||||||
// This should really be a component. Different impls can can be composed to account for different forms of metadata.
|
|
||||||
private ArtifactMetadataSource metadataSource;
|
|
||||||
|
|
||||||
private Map managedVersionMap;
|
private Map managedVersionMap;
|
||||||
|
|
||||||
private List<ConflictResolver> conflictResolvers;
|
private List<ConflictResolver> conflictResolvers;
|
||||||
|
|
||||||
|
private ArtifactMetadataSource metadataSource;
|
||||||
|
|
||||||
public ArtifactResolutionRequest()
|
public ArtifactResolutionRequest()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -67,11 +60,6 @@ public class ArtifactResolutionRequest
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasArtifact()
|
|
||||||
{
|
|
||||||
return artifact != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArtifactResolutionRequest setArtifactDependencies( Set<Artifact> artifactDependencies )
|
public ArtifactResolutionRequest setArtifactDependencies( Set<Artifact> artifactDependencies )
|
||||||
{
|
{
|
||||||
this.artifactDependencies = artifactDependencies;
|
this.artifactDependencies = artifactDependencies;
|
||||||
|
@ -84,57 +72,6 @@ public class ArtifactResolutionRequest
|
||||||
return artifactDependencies;
|
return artifactDependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGroupId()
|
|
||||||
{
|
|
||||||
if ( artifact != null )
|
|
||||||
{
|
|
||||||
return artifact.getGroupId();
|
|
||||||
}
|
|
||||||
|
|
||||||
return groupId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArtifactResolutionRequest setGroupId( String groupId )
|
|
||||||
{
|
|
||||||
this.groupId = groupId;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getArtifactId()
|
|
||||||
{
|
|
||||||
if ( artifact != null )
|
|
||||||
{
|
|
||||||
return artifact.getArtifactId();
|
|
||||||
}
|
|
||||||
|
|
||||||
return artifactId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArtifactResolutionRequest setArtifactId( String artifactId )
|
|
||||||
{
|
|
||||||
this.artifactId = artifactId;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getVersion()
|
|
||||||
{
|
|
||||||
if ( artifact != null )
|
|
||||||
{
|
|
||||||
return artifact.getVersion();
|
|
||||||
}
|
|
||||||
|
|
||||||
return version;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArtifactResolutionRequest setVersion( String version )
|
|
||||||
{
|
|
||||||
this.version = version;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArtifactRepository getLocalRepository()
|
public ArtifactRepository getLocalRepository()
|
||||||
{
|
{
|
||||||
return localRepository;
|
return localRepository;
|
||||||
|
@ -234,12 +171,7 @@ public class ArtifactResolutionRequest
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer()
|
StringBuffer sb = new StringBuffer()
|
||||||
.append( "REQUEST: " ).append( "\n" )
|
.append( "REQUEST: " ).append( "\n" )
|
||||||
.append(getGroupId())
|
.append( "artifact: " ).append( artifact ).append( "\n" )
|
||||||
.append(":")
|
|
||||||
.append(getArtifactId())
|
|
||||||
.append(":")
|
|
||||||
.append(getVersion() ).append( "\n" )
|
|
||||||
.append( "artifact: " ).append( artifact ).append( "\n" )
|
|
||||||
.append( "localRepository: " ).append( localRepository ).append( "\n" )
|
.append( "localRepository: " ).append( localRepository ).append( "\n" )
|
||||||
.append( "remoteRepositories: " ).append( remoteRepositories ).append( "\n" )
|
.append( "remoteRepositories: " ).append( remoteRepositories ).append( "\n" )
|
||||||
.append( "metadataSource: " ).append( metadataSource ).append( "\n" );
|
.append( "metadataSource: " ).append( metadataSource ).append( "\n" );
|
||||||
|
|
Loading…
Reference in New Issue