Class FilesCollector


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

      • FilesCollector

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

      • 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.apache.maven.artifact.Artifact artifact)
        Tests whether or not a name matches against at least one exclude pattern.
        Parameters:
        artifact - The artifact to match. Must not be null.
        Returns:
        true when the name matches against at least one exclude pattern, or false otherwise.