Class FilesCollector

java.lang.Object
org.apache.maven.plugins.gpg.FilesCollector

public class FilesCollector extends Object
Collects project artifact, the POM, and attached artifacts to be signed.
Since:
3.1.0
  • Constructor Details

    • FilesCollector

      public FilesCollector(org.apache.maven.project.MavenProject project, String[] excludes, org.apache.maven.plugin.logging.Log log)
  • Method Details

    • collect

      public List<FilesCollector.Item> collect() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • isExcluded

      protected boolean isExcluded(org.eclipse.aether.artifact.Artifact artifact)
      Tests whether or not a name matches at least one exclude pattern.
      Parameters:
      artifact - the artifact to match. Must not be null.
      Returns:
      true when the name matches at least one exclude pattern, or false otherwise.