Class Maven31RepositoryManager
- java.lang.Object
-
- org.apache.maven.shared.transfer.repository.internal.Maven31RepositoryManager
-
- All Implemented Interfaces:
MavenRepositoryManager
class Maven31RepositoryManager extends java.lang.Object implements MavenRepositoryManager
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.RepositorySystemrepositorySystemprivate org.eclipse.aether.RepositorySystemSessionsession
-
Constructor Summary
Constructors Constructor Description Maven31RepositoryManager(org.eclipse.aether.RepositorySystem repositorySystem, org.eclipse.aether.RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetLocalRepositoryBasedir()Get the localRepositryBasedir as specified in the repository session of the requestjava.lang.StringgetPathForLocalArtifact(org.apache.maven.artifact.Artifact mavenArtifact)java.lang.StringgetPathForLocalArtifact(ArtifactCoordinate coordinate)java.lang.StringgetPathForLocalMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)protected java.lang.StringresolveRepositoryType(org.eclipse.aether.repository.LocalRepository localRepository)org.apache.maven.project.ProjectBuildingRequestsetLocalRepositoryBasedir(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File basedir)Create a newProjectBuildingRequestwith an adjusted repository session.protected org.eclipse.aether.artifact.ArtifacttoArtifact(ArtifactCoordinate coordinate)
-
-
-
Method Detail
-
getPathForLocalArtifact
public java.lang.String getPathForLocalArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
- Specified by:
getPathForLocalArtifactin interfaceMavenRepositoryManager- Parameters:
mavenArtifact-Artifact- Returns:
- the path of the local artifact.
-
getPathForLocalArtifact
public java.lang.String getPathForLocalArtifact(ArtifactCoordinate coordinate)
- Specified by:
getPathForLocalArtifactin interfaceMavenRepositoryManager- Parameters:
coordinate-ArtifactCoordinate- Returns:
- the path for the local artifact.
-
getPathForLocalMetadata
public java.lang.String getPathForLocalMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
- Specified by:
getPathForLocalMetadatain interfaceMavenRepositoryManager- Parameters:
metadata-ArtifactMetadata- Returns:
- the path of the local metadata.
-
setLocalRepositoryBasedir
public org.apache.maven.project.ProjectBuildingRequest setLocalRepositoryBasedir(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File basedir)Description copied from interface:MavenRepositoryManagerCreate a newProjectBuildingRequestwith an adjusted repository session.- Specified by:
setLocalRepositoryBasedirin interfaceMavenRepositoryManagerbasedir- the base directory of the local repository- Returns:
- a new project building request
-
getLocalRepositoryBasedir
public java.io.File getLocalRepositoryBasedir()
Description copied from interface:MavenRepositoryManagerGet the localRepositryBasedir as specified in the repository session of the request- Specified by:
getLocalRepositoryBasedirin interfaceMavenRepositoryManager- Returns:
- the local repository base directory
-
resolveRepositoryType
protected java.lang.String resolveRepositoryType(org.eclipse.aether.repository.LocalRepository localRepository)
- Parameters:
localRepository-LocalRepository- Returns:
- the resolved type.
-
toArtifact
protected org.eclipse.aether.artifact.Artifact toArtifact(ArtifactCoordinate coordinate)
- Parameters:
coordinate-ArtifactCoordinate- Returns:
Artifact
-
-