Class MavenLocationExpander
- java.lang.Object
-
- org.commonjava.maven.ext.io.resolver.MavenLocationExpander
-
- All Implemented Interfaces:
LocationExpander
public class MavenLocationExpander extends Object implements LocationExpander
GalleyLocationExpander
implementation that expands a shorthand URI given in the betterdep goals into the actual list of locations to check for artifacts.
-
-
Field Summary
Fields Modifier and Type Field Description static Location
EXPANSION_TARGET
-
Constructor Summary
Constructors Constructor Description MavenLocationExpander(List<Location> customLocations, List<ArtifactRepository> artifactRepositories, ArtifactRepository localRepository, MirrorSelector mirrorSelector, Settings settings, List<String> activeProfiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Location>
List<Location>expand(Collection<T> locations)
List<Location>
expand(Location... locations)
VirtualResource
expand(Resource resource)
-
-
-
Field Detail
-
EXPANSION_TARGET
public static final Location EXPANSION_TARGET
-
-
Constructor Detail
-
MavenLocationExpander
public MavenLocationExpander(List<Location> customLocations, List<ArtifactRepository> artifactRepositories, ArtifactRepository localRepository, MirrorSelector mirrorSelector, Settings settings, List<String> activeProfiles) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
expand
public List<Location> expand(Location... locations) throws TransferException
- Specified by:
expand
in interfaceLocationExpander
- Throws:
TransferException
-
expand
public <T extends Location> List<Location> expand(Collection<T> locations) throws TransferException
- Specified by:
expand
in interfaceLocationExpander
- Throws:
TransferException
-
expand
public VirtualResource expand(Resource resource) throws TransferException
- Specified by:
expand
in interfaceLocationExpander
- Throws:
TransferException
-
-