我有一个Maven构建的配置,我做以下步骤如何通过自定义的jar文件到Maven插件的jarsigner使用Maven的组装插件签署
1)编译并生成jar文件(ABC.jar) 2)使用maven-proguard的插件来收缩和混淆jar文件以获得结果文件作为ABC-small.jar 3)运行的行家的jarsigner插件签署最后罐子ABC-small.jar
运行proguard的问题是jarsigner插件总是选择从maven-assembly生成的初始ABC.jar文件,而不是从maven-proguard插件生成的ABC-small.jar文件。
如何告诉jarsigner插件选择ABC-small.jar?
这是我在POM文件Maven的配置的jarsigner
<plugin>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- <storetype>pkcs12</storetype> -->
<keystore>cert\keystore</keystore>
<alias>applet</alias>
<storepass>applet</storepass>
<keypass>applet</keypass>
</configuration>
</plugin>