Maven jarsign,所有以 "test" 开头的 jar
Maven jarsign, all jars that start with "test"
如何修改以下 maven 插件,使其对所有以 "test" 开头的 jar 进行签名示例:
- 测试-123.jarojdbc6.jar不-me.jar
只应签署测试-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 或类似的东西,我不知道该怎么做。
**/test*.jar 应该与您的文件匹配
如何修改以下 maven 插件,使其对所有以 "test" 开头的 jar 进行签名示例:
- 测试-123.jarojdbc6.jar不-me.jar
只应签署测试-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 或类似的东西,我不知道该怎么做。