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