Interface ProjectUtils

All Known Implementing Classes:
ProjectUtilsImpl

public interface ProjectUtils
  • Method Details

    • getArtifacts

      List<ArtifactWithFile> getArtifacts(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • deleteGroupArtifactMavenMetadataCentralStagingXml

      void deleteGroupArtifactMavenMetadataCentralStagingXml(org.apache.maven.project.MavenProject project, Path sourceDir)
      Delete ProjectUtilsImpl.MAVEN_METADATA_CENTRAL_STAGING_XML from the Group and Artifact ID directory of a MavenProject within the given sourceDir If the MavenProject has a parent and is a module, the parent and its child modules will have the xml removed as well.
      Parameters:
      project - - MavenProject
      sourceDir - - Path
    • createChecksumFiles

      void createChecksumFiles(org.apache.maven.project.MavenProject project, Path sourceDir, ChecksumRequest checksumRequest)
      Create checksum files for the direct files in the sourceDir. For example, if a sourceDir contains the file TEST-1.0.pom, checksum files will be created for all the requested checksums in the given checksumRequest, like TEST-1.0.pom.md5

      This method doesn't recursively go through child folders.

      Parameters:
      project - - MavenProject
      sourceDir - - Path
      checksumRequest - - ChecksumRequest