org.apache.ivy.plugins.resolver
Class IBiblioResolver
java.lang.Object
org.apache.ivy.plugins.resolver.AbstractResolver
org.apache.ivy.plugins.resolver.BasicResolver
org.apache.ivy.plugins.resolver.AbstractResourceResolver
org.apache.ivy.plugins.resolver.RepositoryResolver
org.apache.ivy.plugins.resolver.URLResolver
org.apache.ivy.plugins.resolver.IBiblioResolver
- All Implemented Interfaces:
- IvySettingsAware, DependencyResolver, HasLatestStrategy
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
.
Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver |
findResourceUsingPattern, findResourceUsingPattern, findTokenValues, get, getRepository, isAlwaysCheckExactRevision, publish, setAlwaysCheckExactRevision, setName, setRepository, setSettings |
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResourceResolver |
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2IdForResourceSearch, findArtifactNames, findIvyNames, findNames, findResource, findResourceUsingPatterns, getIvyPatterns, isM2compatible, setArtifactPatterns, setIvyPatterns |
Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver |
acceptLatest, clearArtifactAttempts, clearIvyAttempts, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isCheckmodified, isEnvDependent, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, searchedRmr, setAllownomd, setCheckconsistency, setCheckmodified, setChecksums, setEnvDependent, setWorkspaceName, toString |
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver |
checkInterrupted, doValidate, findModuleInCache, fromSystem, fromSystem, getChangingMatcher, getChangingMatcherName, getChangingPattern, getLatest, getLatestStrategy, getName, getNamespace, getSettings, getSystemNode, hidePassword, isValidate, setChangingMatcher, setChangingPattern, setLatest, setLatestStrategy, setNamespace, setValidate, toSystem, toSystem, toSystem, toSystem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_PATTERN
public static final java.lang.String DEFAULT_PATTERN
- See Also:
- Constant Field Values
DEFAULT_ROOT
public static final java.lang.String DEFAULT_ROOT
- See Also:
- Constant Field Values
IBiblioResolver
public IBiblioResolver()
findIvyFileRef
protected ResolvedResource findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
- Overrides:
findIvyFileRef
in class AbstractResourceResolver
setM2compatible
public void setM2compatible(boolean m2compatible)
- Overrides:
setM2compatible
in class AbstractResourceResolver
ensureConfigured
public void ensureConfigured(IvySettings settings)
getPattern
public java.lang.String getPattern()
setPattern
public void setPattern(java.lang.String pattern)
getRoot
public java.lang.String getRoot()
setRoot
public void setRoot(java.lang.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:
java.lang.IllegalArgumentException
- if root does not start with "http://"
publish
public void publish(Artifact artifact,
java.io.File src)
listTokenValues
public java.lang.String[] listTokenValues(java.lang.String token,
java.util.Map otherTokenValues)
- Description copied from interface:
DependencyResolver
- List all the values the given token can take if other tokens are set
as described in the otherTokenValues map.
For instance, if token = "revision" and the map contains
"organisation"->"foo"
"module"->"bar"
The results will be the list of revisions of the module bar from the org foo.
- Specified by:
listTokenValues
in interface DependencyResolver
- Overrides:
listTokenValues
in class BasicResolver
listOrganisations
public OrganisationEntry[] listOrganisations()
- Specified by:
listOrganisations
in interface DependencyResolver
- Overrides:
listOrganisations
in class BasicResolver
listModules
public ModuleEntry[] listModules(OrganisationEntry org)
- Specified by:
listModules
in interface DependencyResolver
- Overrides:
listModules
in class BasicResolver
listRevisions
public RevisionEntry[] listRevisions(ModuleEntry mod)
- Specified by:
listRevisions
in interface DependencyResolver
- Overrides:
listRevisions
in class BasicResolver
getTypeName
public java.lang.String getTypeName()
- Overrides:
getTypeName
in class URLResolver
getDependency
public ResolvedModuleRevision getDependency(DependencyDescriptor dd,
ResolveData data)
throws java.text.ParseException
- Description copied from interface:
DependencyResolver
- Resolve a module by id, getting its module descriptor and
resolving the revision if it's a latest one (i.e. a revision
uniquely identifying the revision of a module in the current environment -
If this revision is not able to identify uniquelely the revision of the module
outside of the current environment, then the resolved revision must begin by ##)
- Specified by:
getDependency
in interface DependencyResolver
- Overrides:
getDependency
in class BasicResolver
- Throws:
java.text.ParseException
findArtifactRef
protected ResolvedResource findArtifactRef(Artifact artifact,
java.util.Date date)
- Overrides:
findArtifactRef
in class AbstractResourceResolver
download
public DownloadReport download(Artifact[] artifacts,
DownloadOptions options)
- Specified by:
download
in interface DependencyResolver
- Overrides:
download
in class RepositoryResolver
exists
public boolean exists(Artifact artifact)
- Description copied from class:
AbstractResolver
- Default implementation actually download the artifact
Subclasses should overwrite this to avoid the download
- Specified by:
exists
in interface DependencyResolver
- Overrides:
exists
in class BasicResolver
getArtifactPatterns
public java.util.List getArtifactPatterns()
- Overrides:
getArtifactPatterns
in class AbstractResourceResolver
isUsepoms
public boolean isUsepoms()
setUsepoms
public void setUsepoms(boolean usepoms)
dumpSettings
public void dumpSettings()
- Specified by:
dumpSettings
in interface DependencyResolver
- Overrides:
dumpSettings
in class RepositoryResolver