@Component(role=RepositoryManager.class, hint="maven3") public class Maven30RepositoryManager extends Object implements RepositoryManager
Constructor and Description |
---|
Maven30RepositoryManager() |
Modifier and Type | Method and Description |
---|---|
File |
getLocalRepositoryBasedir(ProjectBuildingRequest buildingRequest)
Get the localRepositryBasedir as specified in the repository session of the request
|
String |
getPathForLocalArtifact(ProjectBuildingRequest buildingRequest,
Artifact mavenArtifact) |
String |
getPathForLocalArtifact(ProjectBuildingRequest buildingRequest,
ArtifactCoordinate coordinate) |
String |
getPathForLocalMetadata(ProjectBuildingRequest buildingRequest,
ArtifactMetadata metadata) |
protected String |
resolveRepositoryType(org.sonatype.aether.repository.LocalRepository localRepository) |
ProjectBuildingRequest |
setLocalRepositoryBasedir(ProjectBuildingRequest buildingRequest,
File basedir)
Create a new
ProjectBuildingRequest with an adjusted repository session. |
protected org.sonatype.aether.artifact.Artifact |
toArtifact(ArtifactCoordinate coordinate) |
public String getPathForLocalArtifact(ProjectBuildingRequest buildingRequest, Artifact mavenArtifact)
getPathForLocalArtifact
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
mavenArtifact
- Artifact
public String getPathForLocalArtifact(ProjectBuildingRequest buildingRequest, ArtifactCoordinate coordinate)
getPathForLocalArtifact
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
coordinate
- ArtifactCoordinate
public String getPathForLocalMetadata(ProjectBuildingRequest buildingRequest, ArtifactMetadata metadata)
getPathForLocalMetadata
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
metadata
- ArtifactMetadata
public ProjectBuildingRequest setLocalRepositoryBasedir(ProjectBuildingRequest buildingRequest, File basedir)
RepositoryManager
ProjectBuildingRequest
with an adjusted repository session.setLocalRepositoryBasedir
in interface RepositoryManager
buildingRequest
- the project building requestbasedir
- the base directory of the local repositorypublic File getLocalRepositoryBasedir(ProjectBuildingRequest buildingRequest)
RepositoryManager
getLocalRepositoryBasedir
in interface RepositoryManager
buildingRequest
- the build requestprotected String resolveRepositoryType(org.sonatype.aether.repository.LocalRepository localRepository)
localRepository
- LocalRepository
protected org.sonatype.aether.artifact.Artifact toArtifact(ArtifactCoordinate coordinate)
coordinate
- ArtifactCoordinate
Artifact
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.