org.apache.ivy.plugins.resolver
Class IBiblioResolver
public
class
IBiblioResolver
extends URLResolver
IBiblioResolver is a resolver which can be used to resolve dependencies found in the ibiblio
maven repository, or similar repositories.
For more flexibility with url and patterns, see
URLResolver.
Method Summary |
DownloadReport | download(Artifact[] artifacts, DownloadOptions options) |
void | dumpSettings() |
void | ensureConfigured(ResolverSettings settings) |
boolean | exists(Artifact artifact) |
protected ResolvedResource | findArtifactRef(Artifact artifact, Date date) |
ResolvedResource | findIvyFileRef(DependencyDescriptor dd, ResolveData data) |
protected void | findTokenValues(Collection names, List patterns, Map tokenValues, String token) |
List | getArtifactPatterns() |
ResolvedModuleRevision | getDependency(DependencyDescriptor dd, ResolveData data) |
protected String | getModuleDescriptorExtension() |
String | getPattern() |
String | getRoot() |
String | getTypeName() |
boolean | isUseMavenMetadata() |
boolean | isUsepoms() |
ModuleEntry[] | listModules(OrganisationEntry org) |
OrganisationEntry[] | listOrganisations() |
protected ResolvedResource[] | listResources(Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact) |
RevisionEntry[] | listRevisions(ModuleEntry mod) |
String[] | listTokenValues(String token, Map otherTokenValues) |
protected String[] | listTokenValues(String pattern, String token) |
ArtifactOrigin | locate(Artifact artifact) |
void | publish(Artifact artifact, File src) |
void | setM2compatible(boolean m2compatible) |
void | setPattern(String pattern) |
void | setRoot(String root)
Sets the root of the maven like repository. |
void | setUseMavenMetadata(boolean useMavenMetadata) |
void | setUsepoms(boolean usepoms) |
public static final String DEFAULT_M2_ROOT
public static final String DEFAULT_PATTERN
public static final String DEFAULT_ROOT
public IBiblioResolver()
public void dumpSettings()
public boolean exists(
Artifact artifact)
protected void findTokenValues(Collection names, List patterns, Map tokenValues, String token)
public List getArtifactPatterns()
protected String getModuleDescriptorExtension()
public String getPattern()
public String getRoot()
public String getTypeName()
public boolean isUseMavenMetadata()
public boolean isUsepoms()
public String[] listTokenValues(String token, Map otherTokenValues)
protected String[] listTokenValues(String pattern, String token)
public void publish(
Artifact artifact, File src)
public void setM2compatible(boolean m2compatible)
public void setPattern(String pattern)
public void setRoot(String root)
Sets the root of the maven like repository. The maven like repository is necessarily an http
repository.
Parameters: root
the root of the maven like repository
Throws: IllegalArgumentException
if root does not start with "http://"
public void setUseMavenMetadata(boolean useMavenMetadata)
public void setUsepoms(boolean usepoms)