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.RepositorySystem
repositorySystem
private org.eclipse.aether.RepositorySystemSession
session
-
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.File
getLocalRepositoryBasedir()
Get the localRepositryBasedir as specified in the repository session of the requestjava.lang.String
getPathForLocalArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
java.lang.String
getPathForLocalArtifact(ArtifactCoordinate coordinate)
java.lang.String
getPathForLocalMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
protected java.lang.String
resolveRepositoryType(org.eclipse.aether.repository.LocalRepository localRepository)
org.apache.maven.project.ProjectBuildingRequest
setLocalRepositoryBasedir(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File basedir)
Create a newProjectBuildingRequest
with an adjusted repository session.protected org.eclipse.aether.artifact.Artifact
toArtifact(ArtifactCoordinate coordinate)
-
-
-
Method Detail
-
getPathForLocalArtifact
public java.lang.String getPathForLocalArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
- Specified by:
getPathForLocalArtifact
in interfaceMavenRepositoryManager
- Parameters:
mavenArtifact
-Artifact
- Returns:
- the path of the local artifact.
-
getPathForLocalArtifact
public java.lang.String getPathForLocalArtifact(ArtifactCoordinate coordinate)
- Specified by:
getPathForLocalArtifact
in 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:
getPathForLocalMetadata
in 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:MavenRepositoryManager
Create a newProjectBuildingRequest
with an adjusted repository session.- Specified by:
setLocalRepositoryBasedir
in interfaceMavenRepositoryManager
basedir
- the base directory of the local repository- Returns:
- a new project building request
-
getLocalRepositoryBasedir
public java.io.File getLocalRepositoryBasedir()
Description copied from interface:MavenRepositoryManager
Get the localRepositryBasedir as specified in the repository session of the request- Specified by:
getLocalRepositoryBasedir
in 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
-
-