Class NullArtifactRepository

    • Constructor Detail

      • NullArtifactRepository

        public NullArtifactRepository()
    • Method Detail

      • getRootDir

        public String getRootDir()
        Description copied from interface: ArtifactRepository
        Return the root dir of a repository, if it doesn't have one, return null
        Specified by:
        getRootDir in interface ArtifactRepository
        Returns:
        the root dir of a repository.
      • listArtifacts

        public Collection<org.eclipse.aether.artifact.Artifact> listArtifacts​(List<String> wildcards)
        Description copied from interface: ArtifactRepository
        List repository artifacts filtered by wildcards
        Specified by:
        listArtifacts in interface ArtifactRepository
        Parameters:
        wildcards - the filtering wildcards
        Returns:
        the artifacts
      • deploy

        public void deploy​(String pom,
                           org.eclipse.aether.artifact.Artifact... artifacts)
        Description copied from interface: ArtifactRepository
        Deploy a list of artifact into a repository
        Specified by:
        deploy in interface ArtifactRepository
        Parameters:
        pom - the artifact pom
        artifacts - the list of artifacts
      • delete

        public void delete​(org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ArtifactRepository
        Delete an artifact from the repository
        Specified by:
        delete in interface ArtifactRepository
        Parameters:
        gav - the GAV identifier of the artifact to be deleted
      • containsArtifact

        public boolean containsArtifact​(org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ArtifactRepository
        Checks whether this Maven repository contains the specified artifact (GAV).

        As opposed to ${code ArtifactRepository.getArtifactFileFromRepository(GAV)}, this method will not log any WARNings in case the artifact is not present (the Aether exception is only logged as TRACE message).

        Specified by:
        containsArtifact in interface ArtifactRepository
        Parameters:
        gav - artifact GAV, never null
        Returns:
        true if the this Maven repo contains the specified artifact, otherwise false
      • getArtifactFileFromRepository

        public File getArtifactFileFromRepository​(org.guvnor.common.services.project.model.GAV gav)
        Description copied from interface: ArtifactRepository
        Return an artifact from the repository
        Specified by:
        getArtifactFileFromRepository in interface ArtifactRepository
        Parameters:
        gav - the GAV identifier
        Returns:
        the artifact found