Interface RepositoryManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.File getLocalRepositoryBasedir​(org.apache.maven.project.ProjectBuildingRequest request)
      Get the localRepositryBasedir as specified in the repository session of the request
      java.lang.String getPathForLocalArtifact​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.Artifact artifact)  
      java.lang.String getPathForLocalArtifact​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, ArtifactCoordinate coordinate)  
      java.lang.String getPathForLocalMetadata​(org.apache.maven.project.ProjectBuildingRequest buildingRequest, org.apache.maven.artifact.metadata.ArtifactMetadata metadata)  
      org.apache.maven.project.ProjectBuildingRequest setLocalRepositoryBasedir​(org.apache.maven.project.ProjectBuildingRequest request, java.io.File basedir)
      Create a new ProjectBuildingRequest with an adjusted repository session.
    • Method Detail

      • getPathForLocalArtifact

        java.lang.String getPathForLocalArtifact​(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
                                                 org.apache.maven.artifact.Artifact artifact)
        Parameters:
        buildingRequest - ProjectBuildingRequest
        artifact - Artifact
        Returns:
        the path of the local artifact.
      • getPathForLocalArtifact

        java.lang.String getPathForLocalArtifact​(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
                                                 ArtifactCoordinate coordinate)
        Parameters:
        buildingRequest - ProjectBuildingRequest
        coordinate - ArtifactCoordinate
        Returns:
        the path for the local artifact.
      • getPathForLocalMetadata

        java.lang.String getPathForLocalMetadata​(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
                                                 org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
        Parameters:
        buildingRequest - ProjectBuildingRequest
        metadata - ArtifactMetadata
        Returns:
        the path of the local metadata.
      • setLocalRepositoryBasedir

        org.apache.maven.project.ProjectBuildingRequest setLocalRepositoryBasedir​(org.apache.maven.project.ProjectBuildingRequest request,
                                                                                  java.io.File basedir)
        Create a new ProjectBuildingRequest with an adjusted repository session.
        Parameters:
        request - the project building request
        basedir - the base directory of the local repository
        Returns:
        a new project building request
      • getLocalRepositoryBasedir

        java.io.File getLocalRepositoryBasedir​(org.apache.maven.project.ProjectBuildingRequest request)
        Get the localRepositryBasedir as specified in the repository session of the request
        Parameters:
        request - the build request
        Returns:
        the local repository base directory