|
TrueUpdate Artifact Implementation Maven 0.1.6 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.java.trueupdate.artifact.impl.maven.MavenArtifactResolver
@Immutable public final class MavenArtifactResolver
Resolves paths to described artifacts and their latest update by looking them up in a local repository and some optional remote repositories.
| Constructor Summary | |
|---|---|
MavenArtifactResolver(org.eclipse.aether.repository.LocalRepository local,
List<org.eclipse.aether.repository.RemoteRepository> remotes)
Constructs a Maven artifact resolver which uses the given local and remote repositories. |
|
MavenArtifactResolver(org.eclipse.aether.repository.LocalRepository local,
org.eclipse.aether.repository.RemoteRepository... remotes)
Constructs a Maven artifact resolver which uses the given local and remote repositories. |
|
| Method Summary | |
|---|---|
static MavenArtifactResolver |
decodeFromXml(Source source)
Decodes a maven artifact resolver from XML. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
static JAXBContext |
jaxbContext()
Returns a JAXB context which binds only this class. |
org.eclipse.aether.repository.LocalRepository |
localRepository()
Returns the local repository. |
static URL |
mainRepositoriesResource()
Returns the URL of the "main-repositories.xml" resource. |
List<org.eclipse.aether.repository.RemoteRepository> |
remoteRepositories()
Returns a list of remote repositories. |
File |
resolveArtifactFile(ArtifactDescriptor descriptor)
|
String |
resolveUpdateVersion(ArtifactDescriptor descriptor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MavenArtifactResolver(org.eclipse.aether.repository.LocalRepository local,
List<org.eclipse.aether.repository.RemoteRepository> remotes)
local - the local repository.remotes - the list of remote repositories.
public MavenArtifactResolver(org.eclipse.aether.repository.LocalRepository local,
org.eclipse.aether.repository.RemoteRepository... remotes)
local - the local repository.remotes - the array of remote repositories.| Method Detail |
|---|
public static MavenArtifactResolver decodeFromXml(Source source)
throws Exception
source - the source for reading the XML.
Exception - at the discretion of the JAXB codec, e.g. if the
source isn't readable.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static JAXBContext jaxbContext()
public org.eclipse.aether.repository.LocalRepository localRepository()
public static URL mainRepositoriesResource()
"main-repositories.xml" resource.
public List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories()
public File resolveArtifactFile(ArtifactDescriptor descriptor)
throws Exception
resolveArtifactFile in interface ArtifactResolverException
public String resolveUpdateVersion(ArtifactDescriptor descriptor)
throws Exception
resolveUpdateVersion in interface ArtifactResolverException
|
TrueUpdate Artifact Implementation Maven 0.1.6 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||