public class RepositoryUtils extends Object
Constructor and Description |
---|
RepositoryUtils(Log log,
ProjectBuilder projectBuilder,
RepositorySystem repositorySystem,
ArtifactResolver resolver,
List<ArtifactRepository> remoteRepositories,
List<ArtifactRepository> pluginRepositories,
ProjectBuildingRequest buildingRequest,
RepositoryMetadataManager repositoryMetadataManager) |
Modifier and Type | Method and Description |
---|---|
String |
getDependencyUrlFromRepository(Artifact artifact,
ArtifactRepository repo) |
MavenProject |
getMavenProjectFromRepository(Artifact artifact)
Get the
Maven project from the repository depending the Artifact given. |
void |
resolve(Artifact artifact) |
public RepositoryUtils(Log log, ProjectBuilder projectBuilder, RepositorySystem repositorySystem, ArtifactResolver resolver, List<ArtifactRepository> remoteRepositories, List<ArtifactRepository> pluginRepositories, ProjectBuildingRequest buildingRequest, RepositoryMetadataManager repositoryMetadataManager)
log
- Log
projectBuilder
- ProjectBuilder
repositorySystem
- RepositorySystem
resolver
- ArtifactResolver
remoteRepositories
- ArtifactRepository
pluginRepositories
- ArtifactRepository
buildingRequest
- ProjectBuildingRequest
repositoryMetadataManager
- RepositoryMetadataManager
public void resolve(Artifact artifact) throws ArtifactResolverException
artifact
- not nullArtifactResolverException
- if anypublic MavenProject getMavenProjectFromRepository(Artifact artifact) throws ProjectBuildingException
Maven project
from the repository depending the Artifact
given.artifact
- an artifactProjectBuildingException
- if anypublic String getDependencyUrlFromRepository(Artifact artifact, ArtifactRepository repo)
artifact
- not nullrepo
- not nullCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.