@Component(role=RepositoryManager.class) public class DefaultRepositoryManager extends Object implements RepositoryManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Constructor and Description |
---|
DefaultRepositoryManager() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
File |
getLocalRepositoryBasedir(ProjectBuildingRequest request)
Get the localRepositryBasedir as specified in the repository session of the request
|
String |
getPathForLocalArtifact(ProjectBuildingRequest buildingRequest,
Artifact artifact) |
String |
getPathForLocalArtifact(ProjectBuildingRequest buildingRequest,
ArtifactCoordinate coor) |
String |
getPathForLocalMetadata(ProjectBuildingRequest buildingRequest,
ArtifactMetadata metadata) |
protected static boolean |
isMaven302() |
protected static boolean |
isMaven31() |
ProjectBuildingRequest |
setLocalRepositoryBasedir(ProjectBuildingRequest request,
File basedir)
Create a new
ProjectBuildingRequest with an adjusted repository session. |
public String getPathForLocalArtifact(ProjectBuildingRequest buildingRequest, Artifact artifact)
getPathForLocalArtifact
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
artifact
- Artifact
public String getPathForLocalArtifact(ProjectBuildingRequest buildingRequest, ArtifactCoordinate coor)
getPathForLocalArtifact
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
coor
- ArtifactCoordinate
public String getPathForLocalMetadata(ProjectBuildingRequest buildingRequest, ArtifactMetadata metadata)
getPathForLocalMetadata
in interface RepositoryManager
buildingRequest
- ProjectBuildingRequest
metadata
- ArtifactMetadata
public ProjectBuildingRequest setLocalRepositoryBasedir(ProjectBuildingRequest request, File basedir)
RepositoryManager
ProjectBuildingRequest
with an adjusted repository session.setLocalRepositoryBasedir
in interface RepositoryManager
request
- the project building requestbasedir
- the base directory of the local repositorypublic File getLocalRepositoryBasedir(ProjectBuildingRequest request)
RepositoryManager
getLocalRepositoryBasedir
in interface RepositoryManager
request
- the build requestprotected static boolean isMaven31()
protected static boolean isMaven302()
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
context
- Plexus context to inject.org.codehaus.plexus.context.ContextException
- if the PlexusContainer could not be located.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.