|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.maven.repository.MavenRepository
public final class MavenRepository
The repository to access artifacts to resolve for property descriptor information.
Constructor Summary | |
---|---|
MavenRepository(String remoteRepositoryUrl, org.sonatype.aether.repository.Authentication auth, String localRepositoryPath) Convenience constructor without dependency filters. |
|
MavenRepository(String remoteRepositoryUrl, org.sonatype.aether.repository.Authentication auth, String localRepositoryPath, List<org.sonatype.aether.graph.DependencyFilter> dependencyFilters, boolean offline) Default constructor. |
|
MavenRepository(String remoteRepositoryUrl, String localRepositoryPath) Convenience constructor without dependency filters and no authentication. |
Method Summary | |
---|---|
org.sonatype.aether.RepositorySystemSession |
createSession() Creates a session to communicate with the repository. |
String |
getRemoteRepositoryUrl() Returns the URL to the remote repository. |
de.smartics.properties.resource.domain.ClassPathEnvironment |
resolve(org.sonatype.aether.RepositorySystemSession session, org.sonatype.aether.artifact.Artifact artifact) Resolves the artifact so that it is locally accessible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MavenRepository(String remoteRepositoryUrl, String localRepositoryPath)
remoteRepositoryUrl
- the URL to the remote repository of artifacts.
localRepositoryPath
- the directory path to the local repository of artifacts.
public MavenRepository(String remoteRepositoryUrl, org.sonatype.aether.repository.Authentication auth, String localRepositoryPath)
remoteRepositoryUrl
- the URL to the remote repository of artifacts.
localRepositoryPath
- the directory path to the local repository of artifacts.
public MavenRepository(String remoteRepositoryUrl, org.sonatype.aether.repository.Authentication auth, String localRepositoryPath, List<org.sonatype.aether.graph.DependencyFilter> dependencyFilters, boolean offline)
remoteRepositoryUrl
- the URL to the remote repository of artifacts.
localRepositoryPath
- the directory path to the local repository of artifacts.
dependencyFilters
- the list of dependency filters to apply to the dependency request.
Method Detail |
---|
public org.sonatype.aether.RepositorySystemSession createSession()
public de.smartics.properties.resource.domain.ClassPathEnvironment resolve(org.sonatype.aether.RepositorySystemSession session, org.sonatype.aether.artifact.Artifact artifact) throws org.sonatype.aether.resolution.DependencyResolutionException
session
- the session used for communication.
artifact
- the artifact to resolve.
org.sonatype.aether.resolution.DependencyResolutionException
- if the dependency tree could not be built or any dependency artifact could not be resolved.
public String getRemoteRepositoryUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |