Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-49

Jarsigner fails on windows due to spaces in pathnames

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • sign
    • None
    • Windows XP

    Description

      This is a problem uncovered while running the latest (1.0-20060307.100605-1) version of the webstart plugin, which uses the jar plugin to sign jars. During the signing stage maven fails with
      [debug] jarsigner executable=[C:\Program Files\Java\jdk1.5.0_06\jre\..\bin\jarsigner.exe]
      [debug] Signing JAR in-place (overwritting original JAR).
      [warn] 'C:\Program' is not recognized as an internal or external command,
      [warn] operable program or batch file.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Result of "C:\Program Files\Java\jdk1.5.0_06\jre\..\bin\jarsigner.exe" -verbose -keystore "C:\Documents and Settings\jdt\.keystore" -storepass ****** -keypass ****** E:\jdt\data\workspace\tabview\tabview-webstart\target\jnlp\commons-logging-1.0.3.jar roe execution is: '1'.
      [INFO] ------------------------------------------------------------------------
      (full trace is attached).

      It looks as though the plexus utils classes are tokenizing the path to the jarsigner executable wrongly due to it containing spaces.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              jdt@roe.ac.uk John Taylor
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: