public class AetherFacade extends io.hawt.util.MBeanSupport implements AetherFacadeMXBean
Modifier and Type | Field and Description |
---|---|
static String |
AETHER_MBEAN_NAME |
protected static String |
DEFAULT_CLASSIFIER |
protected static String |
DEFAULT_EXTENSION |
Constructor and Description |
---|
AetherFacade() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultObjectName() |
String |
getLocalRepoDir() |
org.sonatype.aether.repository.LocalRepository |
getLocalRepository() |
List<org.sonatype.aether.repository.RemoteRepository> |
getRemoteRepositories() |
org.sonatype.aether.RepositorySystem |
getRepositorySystem() |
void |
init() |
protected org.sonatype.aether.RepositorySystem |
newManualSystem() |
protected org.sonatype.aether.RepositorySystemSession |
newSession() |
AetherResult |
resolve(String mavenCoords) |
AetherResult |
resolve(String groupId,
String artifactId,
String version,
String extension,
String classifier) |
String |
resolveJson(String mavenCoords) |
String |
resolveJson(String groupId,
String artifactId,
String version,
String extension,
String classifier) |
String |
resolveUrlToFileName(String mvnUrl)
Resolves the set of maven coordinates of the form
group/artifact/version[/classifier/type] to a local file name on the local machine |
void |
setLocalRepoDir(String localRepoDir) |
void |
setRemoteRepositories(List<org.sonatype.aether.repository.RemoteRepository> remoteRepositories) |
void |
setRepositorySystem(org.sonatype.aether.RepositorySystem repositorySystem) |
public static final String AETHER_MBEAN_NAME
protected static String DEFAULT_EXTENSION
protected static String DEFAULT_CLASSIFIER
public void init() throws Exception
init
in class io.hawt.util.MBeanSupport
Exception
public String resolveUrlToFileName(String mvnUrl) throws MalformedURLException, org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.sonatype.aether.collection.DependencyCollectionException, org.codehaus.plexus.PlexusContainerException, org.sonatype.aether.resolution.DependencyResolutionException, org.sonatype.aether.resolution.ArtifactResolutionException
AetherFacadeMXBean
group/artifact/version[/classifier/type]
to a local file name on the local machineresolveUrlToFileName
in interface AetherFacadeMXBean
MalformedURLException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.sonatype.aether.collection.DependencyCollectionException
org.codehaus.plexus.PlexusContainerException
org.sonatype.aether.resolution.DependencyResolutionException
org.sonatype.aether.resolution.ArtifactResolutionException
public String resolveJson(String mavenCoords) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.sonatype.aether.collection.DependencyCollectionException, org.codehaus.plexus.PlexusContainerException, org.sonatype.aether.resolution.ArtifactResolutionException, org.sonatype.aether.resolution.DependencyResolutionException
resolveJson
in interface AetherFacadeMXBean
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.sonatype.aether.collection.DependencyCollectionException
org.codehaus.plexus.PlexusContainerException
org.sonatype.aether.resolution.ArtifactResolutionException
org.sonatype.aether.resolution.DependencyResolutionException
public String resolveJson(String groupId, String artifactId, String version, String extension, String classifier) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.sonatype.aether.collection.DependencyCollectionException, org.codehaus.plexus.PlexusContainerException, org.sonatype.aether.resolution.ArtifactResolutionException, org.sonatype.aether.resolution.DependencyResolutionException
resolveJson
in interface AetherFacadeMXBean
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.sonatype.aether.collection.DependencyCollectionException
org.codehaus.plexus.PlexusContainerException
org.sonatype.aether.resolution.ArtifactResolutionException
org.sonatype.aether.resolution.DependencyResolutionException
public AetherResult resolve(String mavenCoords) throws org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.sonatype.aether.collection.DependencyCollectionException, org.sonatype.aether.resolution.ArtifactResolutionException, org.sonatype.aether.resolution.DependencyResolutionException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.sonatype.aether.collection.DependencyCollectionException
org.sonatype.aether.resolution.ArtifactResolutionException
org.sonatype.aether.resolution.DependencyResolutionException
public AetherResult resolve(String groupId, String artifactId, String version, String extension, String classifier) throws org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.sonatype.aether.collection.DependencyCollectionException, org.sonatype.aether.resolution.ArtifactResolutionException, org.sonatype.aether.resolution.DependencyResolutionException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.sonatype.aether.collection.DependencyCollectionException
org.sonatype.aether.resolution.ArtifactResolutionException
org.sonatype.aether.resolution.DependencyResolutionException
public org.sonatype.aether.repository.LocalRepository getLocalRepository()
public String getLocalRepoDir()
public void setLocalRepoDir(String localRepoDir)
public org.sonatype.aether.RepositorySystem getRepositorySystem() throws org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public void setRepositorySystem(org.sonatype.aether.RepositorySystem repositorySystem)
public List<org.sonatype.aether.repository.RemoteRepository> getRemoteRepositories()
public void setRemoteRepositories(List<org.sonatype.aether.repository.RemoteRepository> remoteRepositories)
protected String getDefaultObjectName()
getDefaultObjectName
in class io.hawt.util.MBeanSupport
protected org.sonatype.aether.RepositorySystem newManualSystem() throws org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
protected org.sonatype.aether.RepositorySystemSession newSession() throws org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
Copyright © 2020 JBoss by Red Hat. All rights reserved.