Skip to content

Commit 26aa5b3

Browse files
committed
[MGPG-66] fix handling of excluded files
1 parent b38c638 commit 26aa5b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/apache/maven/plugins/gpg/GpgSignAttachedMojo.java

+6
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ else if ( project.getAttachedArtifacts().isEmpty() )
192192

193193
File file = artifact.getFile();
194194

195+
if ( isExcluded( file.getPath() ) )
196+
{
197+
getLog().debug( "Skipping generation of signature for excluded " + file );
198+
continue;
199+
}
200+
195201
getLog().debug( "Generating signature for " + file );
196202

197203
File signature = signer.generateSignatureForArtifact( file );

0 commit comments

Comments
 (0)