如何修改以下maven插件,因此它会签署所有以“test”为例开头的jar:
只应签署test-123.jar
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<phase>install</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!--path to the app jar folder-->
<archiveDirectory>${project.basedir}/target</archiveDirectory>
<includes>
<include>**/*.jar</include>
</includes>
<!--path to keystore-->
<keystore>keystore.jks</keystore>
<alias>test</alias>
<storepass>test</storepass>
<keypass>test</keypass>
<verbose>true</verbose>
<processMainArtifact>false</processMainArtifact> <removeExistingSignatures>true</removeExistingSignatures>
</configuration>
</plugin>
** / * .jar应编辑为** / test + * .jar或类似的东西,我不知道如何。
答案 0 :(得分:1)
&LT;包括&GT; ** /测试的* .jar&LT; /&包括GT;应匹配您的文件