Maven Jar Signer Plugin
  1. Maven Jar Signer Plugin
  2. MJARSIGNER-13

signing in multi-module project fails on windows

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:
      Windows XP, android sdk
    • Number of attachments :
      1

      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?

      1. pom.xml
        3 kB
        Anna Gadomska

        Activity

        Hide
        Kurt T Stam added a comment -

        Super Dennis, this fixed it for us! Cheers --Kurt

        Show
        Kurt T Stam added a comment - Super Dennis, this fixed it for us! Cheers --Kurt
        Hide
        Tony Chemit added a comment -

        Hi @Dennis, Have you add your entry in the project FAQ? I don't see it, could you done it to close this issue efore next release (I hope to do it soon after releasing maven-shared-utils, maven-jarsinger,...).

        Thanks.

        Show
        Tony Chemit added a comment - Hi @Dennis, Have you add your entry in the project FAQ? I don't see it, could you done it to close this issue efore next release (I hope to do it soon after releasing maven-shared-utils, maven-jarsinger,...). Thanks.
        Hide
        Tony Chemit added a comment -

        Entry added in FAQ at rev1553915

        Show
        Tony Chemit added a comment - Entry added in FAQ at rev1553915
        Show
        Jason Pyeron added a comment - Link to FAQ: http://maven.apache.org/plugins/maven-jarsigner-plugin/faq.html
        Hide
        Jason Pyeron added a comment -

        E.g.

        <build>
        	<plugins>
        		<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-jarsigner-plugin</artifactId>
        		</plugin>
        		<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-assembly-plugin</artifactId>
        		</plugin>
        	</plugins>
        </build>
        
        Show
        Jason Pyeron added a comment - E.g. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> </plugin> </plugins> </build>

          People

          • Assignee:
            Tony Chemit
            Reporter:
            Anna Gadomska
          • Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: