根据document,我在〜/ .m2 / settings-security.xml文件中创建/添加了以下代码:
<settingsSecurity>
<master>{ENCRIPTED_PASSWORD}</master>
</settingsSecurity>
使用maven build(mvn clean程序包)后,出现以下错误:
[ERROR] error using security dispatcher: org.sonatype.plexus.components.cipher.PlexusCipherException: javax.crypto.BadPaddingException: Given final block not properly padded
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: org.sonatype.plexus.components.cipher.PlexusCipherException: javax.crypto.BadPaddingException: Given final block not properly padded
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.4:sign (sign) on project com.daimler.duke.common.server: error using security dispatcher: org.sonatype.plexus.components.cipher.PlexusCipherException: javax.crypto.BadPaddingException: Given final block not properly padded -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
请问有什么可以帮助我解决这个新手的问题。
谢谢
答案 0 :(得分:0)
最好重新生成密码。编辑生成的密码可能会损坏它。
下面是生成它的示例命令。请注意,使用mvn命令生成密码时,请在密码前后加上引号。
mvn -emp "<PASSWORD>" and mvn -ep "<PASSWORD>"