You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Manfred Koch (Jira)" <ji...@apache.org> on 2020/10/16 12:57:00 UTC

[jira] [Created] (MJARSIGNER-62) additionalArguments should not have double quotes

Manfred Koch created MJARSIGNER-62:
--------------------------------------

             Summary: 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


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.3.4#803005)