@Service(value="dependencyTreeBuilder#maven3") public class Maven3DependencyTreeBuilder extends Object implements DependencyTreeBuilder
Modifier and Type | Class and Description |
---|---|
private static class |
Maven3DependencyTreeBuilder.ResolveRequest |
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.model.building.ModelBuilder |
builder |
private org.apache.maven.artifact.factory.ArtifactFactory |
factory |
private org.slf4j.Logger |
log |
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private NetworkProxyAdmin |
networkProxyAdmin |
private RepositoryPathTranslator |
pathTranslator |
private PlexusSisuBridge |
plexusSisuBridge |
private ProxyConnectorAdmin |
proxyConnectorAdmin |
private RemoteRepositoryAdmin |
remoteRepositoryAdmin |
private WagonFactory |
wagonFactory |
Constructor and Description |
---|
Maven3DependencyTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
List<TreeEntry> |
buildDependencyTree(List<String> repositoryIds,
String groupId,
String artifactId,
String version) |
void |
buildDependencyTree(List<String> repositoryIds,
String groupId,
String artifactId,
String version,
org.sonatype.aether.graph.DependencyVisitor dependencyVisitor) |
private ManagedRepository |
findArtifactInRepositories(List<String> repositoryIds,
org.apache.maven.artifact.Artifact projectArtifact) |
void |
initialize() |
private org.sonatype.aether.RepositorySystem |
newRepositorySystem() |
private org.sonatype.aether.RepositorySystemSession |
newRepositorySystemSession(org.sonatype.aether.RepositorySystem system,
String localRepoDir) |
private void |
resolve(Maven3DependencyTreeBuilder.ResolveRequest resolveRequest) |
private org.slf4j.Logger log
@Inject private PlexusSisuBridge plexusSisuBridge
@Inject @Named(value="repositoryPathTranslator#maven2") private RepositoryPathTranslator pathTranslator
@Inject private WagonFactory wagonFactory
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
@Inject private ProxyConnectorAdmin proxyConnectorAdmin
@Inject private NetworkProxyAdmin networkProxyAdmin
@Inject private RemoteRepositoryAdmin remoteRepositoryAdmin
private org.apache.maven.artifact.factory.ArtifactFactory factory
private org.apache.maven.model.building.ModelBuilder builder
public Maven3DependencyTreeBuilder()
@PostConstruct public void initialize() throws PlexusSisuBridgeException
PlexusSisuBridgeException
public void buildDependencyTree(List<String> repositoryIds, String groupId, String artifactId, String version, org.sonatype.aether.graph.DependencyVisitor dependencyVisitor) throws DependencyTreeBuilderException
buildDependencyTree
in interface DependencyTreeBuilder
DependencyTreeBuilderException
public List<TreeEntry> buildDependencyTree(List<String> repositoryIds, String groupId, String artifactId, String version) throws DependencyTreeBuilderException
buildDependencyTree
in interface DependencyTreeBuilder
DependencyTreeBuilderException
private void resolve(Maven3DependencyTreeBuilder.ResolveRequest resolveRequest)
private org.sonatype.aether.RepositorySystem newRepositorySystem()
private org.sonatype.aether.RepositorySystemSession newRepositorySystemSession(org.sonatype.aether.RepositorySystem system, String localRepoDir)
private ManagedRepository findArtifactInRepositories(List<String> repositoryIds, org.apache.maven.artifact.Artifact projectArtifact) throws RepositoryAdminException
RepositoryAdminException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.