Reputation: 69440
I have configured the jar signer plugin in my Project
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*-javadoc.jar</exclude>
<exclude>**/*-sources.jar</exclude>
</excludes>
<keystore>${project.basedir}\security\keystore.jks</keystore>
<alias>mydomain</alias>
<storepass>changeit</storepass>
<keypass>changeit</keypass>
</configuration>
Because my Project also generate a javadoc and a sources jar which should not be signed, i try to exclude it. But it seems not working. If i look into my jar files, thay are signed. Also if i take a look into the maven Output i can see that the jar signer is called for the sources and javadoc jar.
I can see, that the configuration is consumed by maven:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jarsigner-plugin:1.4:sign' with basic configurator -->
[DEBUG] (f) alias = mydomain
[DEBUG] (f) arguments = []
[DEBUG] (f) excludes = [**/*-javadoc.jar, **/*-sources.jar]
Can anyone tell me what is wrong with the exclution section?
Upvotes: -3
Views: 1171
Reputation: 97409
I would suggest to use the excludeClassifiers
<excludeClassifiers>
<excludeClassifier>javadoc</excludeClassifier>
<excludeClassifier>sources</excludeClassifier>
</excludeClassifiers>
instead of your excludes.
Furthermore I would recommand to prevent using back slashes in a Maven pom.
Upvotes: 0