o Restored methods for backward-compat

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@805378 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-18 11:59:58 +00:00
parent 7ed9ec5b37
commit 1bf8d76de8
2 changed files with 14 additions and 1 deletions

View File

@ -87,7 +87,12 @@ public class ArtifactResolutionResult
public Set<Artifact> getArtifacts()
{
return ( artifacts != null ) ? artifacts : Collections.<Artifact> emptySet();
if ( artifacts == null )
{
artifacts = new LinkedHashSet<Artifact>();
}
return artifacts;
}
public void setArtifacts( Set<Artifact> artifacts )

View File

@ -51,6 +51,14 @@ public interface ArtifactResolver
ArtifactMetadataSource source, ArtifactFilter filter )
throws ArtifactResolutionException, ArtifactNotFoundException;
// USED BY MAVEN ASSEMBLY PLUGIN
@Deprecated
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact,
Map managedVersions, ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories,
ArtifactMetadataSource source )
throws ArtifactResolutionException, ArtifactNotFoundException;
// USED BY MAVEN ASSEMBLY PLUGIN
@Deprecated
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository,