使用Maven-JarSigner-Plug签署APK [英] Signing apk with maven-jarsigner-plugin
本文介绍了使用Maven-JarSigner-Plug签署APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了此教程并配置Maven来签名我的apk。
I followed this tutorial and configured maven to sign my apk.
这是我pom.xml的一部分
Here is a part of my pom.xml
<!-- Maven plugin which is responsible for signing apks -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<executions>
<execution>
<id>signing</id>
<goals>
<goal>sign</goal>
<goal>verify</goal>
</goals>
<phase>package</phase>
<inherited>true</inherited>
<configuration>
<removeExistingSignatures>true</removeExistingSignatures>
<archiveDirectory/>
<includes>
<include>${project.build.directory}/eticapp-1.0.0-SNAPSHOT.apk</include>
</includes>
<keystore>d:\My Docs\KeyStore\EtickAppKeystore</keystore>
<alias>ekey</alias>
<storepass>1234abcd</storepass>
<keypass>123abc</keypass>
<verbose>true</verbose>
<arguments>
<argument>-sigalg</argument><argument>MD5withRSA</argument>
<argument>-digestalg</argument><argument>SHA1</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
实际上是在我尝试执行目标时:
Indeed when I am trying to execute the goals:
jarsigner:sign jarsigner:verify
我明白了明确设置了有关失败别名的异常。
对此有任何解决方案吗?
I get an Exception about failing alias, which is clearly set. Any solutions for that?
Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign (default-cli) on project eticapp: The parameters 'alias' for goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign are missing or invalid -> [Help 1]
推荐答案
解决方案是不使用配额在我的别名和密码中标记!
The solution was not to use quotatin marks in my alias and password!
这篇关于使用Maven-JarSigner-Plug签署APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文