Package org.apache.maven.plugins.gpg
Class FilesCollector
java.lang.Object
org.apache.maven.plugins.gpg.FilesCollector
Collects project artifact, the POM, and attached artifacts to be signed.
- Since:
- 3.1.0
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionFilesCollector
(org.apache.maven.project.MavenProject project, String[] excludes, org.apache.maven.plugin.logging.Log log) -
Method Summary
Modifier and TypeMethodDescriptioncollect()
protected boolean
isExcluded
(org.eclipse.aether.artifact.Artifact artifact) Tests whether or not a name matches at least one exclude pattern.
-
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 benull
.- Returns:
true
when the name matches at least one exclude pattern, orfalse
otherwise.
-