[ https://issues.apache.org/jira/browse/MJARSIGNER-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17795362#comment-17795362 ]
ASF GitHub Bot commented on MJARSIGNER-62: ------------------------------------------ elharo merged PR #17: URL: https://github.com/apache/maven-jarsigner-plugin/pull/17 > additionalArguments should not have double quotes > ------------------------------------------------- > > Key: MJARSIGNER-62 > URL: https://issues.apache.org/jira/browse/MJARSIGNER-62 > Project: Maven Jar Signer Plugin > Issue Type: Bug > Affects Versions: 3.0.0 > Environment: Windows > Reporter: Manfred Koch > Priority: Major > > Adding additional arguments to the jarsigner with the arguments option will > be double qouted in the command line. That causes errors and should be > avoided. > > *Example:* > > {code:java} > <arguments>-certchain c:\chain.crt</arguments> > {code} > > Results in > {noformat} > c:\Jenkins\tools\hudson.model.JDK\jdk-1.8.0_144-windows-x64\jre\..\bin\jarsigner.exe > -keystore NONE -storepass *** -storetype PKCS11 -providerClass > sun.security.pkcs11.SunPKCS11 -providerArg C:\config.conf "-certchain > c:\chain.crt" -tsa http://timestamp.digicert.com library.jar alias{noformat} > That can't be executed. I check that manually on the system. > But without double qoutes > {noformat} > c:\Jenkins\tools\hudson.model.JDK\jdk-1.8.0_144-windows-x64\jre\..\bin\jarsigner.exe > -keystore NONE -storepass *** -storetype PKCS11 -providerClass > sun.security.pkcs11.SunPKCS11 -providerArg C:\config.conf -certchain > c:\chain.crt -tsa http://timestamp.digicert.com library.jar alias{noformat} > it is possible to execute the command. I have checked the source code of the > *AbstractJarsignerMojo.* All *additionalArguments* should not be double > quoted. > -- This message was sent by Atlassian Jira (v8.20.10#820010)