Uploaded image for project: 'Maven Jar Signer Plugin'
  1. Maven Jar Signer Plugin
  2. MJARSIGNER-13

signing in multi-module project fails on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • Windows XP, android sdk

    Description

      I got multi-module (6 modules) android project with .pom file and "sign" profile defined. When I execute with 'sign' profile:

      • in Maven 3.0.1 - it signs 3 modules and fails. when I resume the execution (mv <goal> -rf) it signs another 3 modules and fails again. The reason for failing is: [INFO] jarsigner: attempt to rename xxx.jar to xxx.jar.orig failed.
      • in Maven 2.2.1 - it doesn't work at all, even for first module; it returns "error code 1"

      However, I tried the same .pom - everything works perfectly in Linux (Ubuntu).

      I was afraid that it might be the issue with spaces, so I hardcoded the paths - the error I got from maven than was:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign (signing) on project MyProject: Failed executing 'cmd.exe /X /C "C:\tools\JavaTMSEDevelopementKit\jre\..\bin\jarsigner.exe -verbose -keystore "C:\tmp\debug.keystore" -storepass '*****' -keypass '*****' xxx.jar '*****'debugkey"' - exitcode 1 -> [Help 1]
      

      Attaching pom file which I am using.
      Please help?

      Attachments

        1. pom.xml
          3 kB
          Anna Gadomska

        Activity

          People

            tchemit Tony Chemit
            gadomska.anna Anna Gadomska
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: