[
https://jira.codehaus.org/browse/MJARSIGNER-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=325442#comment-325442
]
Kurt T Stam commented on MJARSIGNER-13:
---------------------------------------
This issue pretty much kills this plugin on windows.
[INFO] Processing C:\test\juddi\juddi-gui-dsig\target\juddi-gui-dsig-3.2.0-SNAPS
HOT.jar
[DEBUG] 'cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43\jre\..\bin\jarsigner.
exe" -verbose -keystore signing.keystore -storepass '*****' -keypass '*****' C:\
test\juddi\juddi-gui-dsig\target\juddi-gui-dsig-3.2.0-SNAPSHOT.jar '*****'"'
[INFO] updating: META-INF/MANIFEST.MF
[INFO] adding: META-INF/APPLET.SF
[INFO] adding: META-INF/APPLET.DSA
[INFO] adding: org/
[INFO] adding: org/apache/
[INFO] adding: org/apache/juddi/
[INFO] adding: org/apache/juddi/gui/
[INFO] adding: org/apache/juddi/gui/dsig/
[INFO] signing: org/apache/juddi/gui/dsig/XmlSignatureApplet$1.class
[INFO] signing: org/apache/juddi/gui/dsig/XmlSignatureApplet$2.class
[INFO] signing: org/apache/juddi/gui/dsig/XmlSignatureApplet.class
[INFO] jarsigner: attempt to rename C:\test\juddi\juddi-gui-dsig\target\juddi-gu
i-dsig-3.2.0-SNAPSHOT.jar to C:\test\juddi\juddi-gui-dsig\target\juddi-gui-dsig-
3.2.0-SNAPSHOT.jar.orig failed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.891s
[INFO] Finished at: Wed May 22 16:01:54 PDT 2013
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1
.2:sign (default) on project juddi-gui-dsig: Failed executing 'cmd.exe /X /C ""C
:\Program Files\Java\jdk1.6.0_43\jre\..\bin\jarsigner.exe" -verbose -keystore si
gning.keystore -storepass '*****' -keypass '*****' C:\test\juddi\juddi-gui-dsig\
target\juddi-gui-dsig-3.2.0-SNAPSHOT.jar '*****'"' - exitcode 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-jarsigner-plugin:1.2:sign (default) on project jud
di-gui-dsig: Failed executing 'cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43
\jre\..\bin\jarsigner.exe" -verbose -keystore signing.keystore -storepass '*****
' -keypass '*****' C:\test\juddi\juddi-gui-dsig\target\juddi-gui-dsig-3.2.0-SNAP
SHOT.jar '*****'"' - exitcode 1
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed executing 'cmd
.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43\jre\..\bin\jarsigner.exe" -verbos
e -keystore signing.keystore -storepass '*****' -keypass '*****' C:\test\juddi\j
uddi-gui-dsig\target\juddi-gui-dsig-3.2.0-SNAPSHOT.jar '*****'"' - exitcode 1
at org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo.processArchi
ve(AbstractJarsignerMojo.java:495)
at org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo.processArtif
act(AbstractJarsignerMojo.java:372)
at org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo.execute(Abst
ractJarsignerMojo.java:197)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
C:\test\juddi\juddi-gui-dsig>
while running the command straight up works fine:
C:\test\juddi\juddi-gui-dsig>cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_43\j
re\..\bin\jarsigner.exe" -verbose -keystore signing.keystore -storepass applet -
keypass applet C:\test\juddi\juddi-gui-dsig\target\juddi-gui-dsig-3.2.0-SNAPSHOT
.jar applet"
updating: META-INF/MANIFEST.MF
adding: META-INF/APPLET.SF
adding: META-INF/APPLET.DSA
adding: org/
adding: org/apache/
adding: org/apache/juddi/
adding: org/apache/juddi/gui/
adding: org/apache/juddi/gui/dsig/
signing: org/apache/juddi/gui/dsig/XmlSignatureApplet$1.class
signing: org/apache/juddi/gui/dsig/XmlSignatureApplet$2.class
signing: org/apache/juddi/gui/dsig/XmlSignatureApplet.class
Warning:
The signer certificate will expire within six months.
It is not very clear to me why it would fail, but I guess the first error is
the rename to .orig which fails, so this may suggest a windows file lock?
Our module lives here:
http://svn.apache.org/repos/asf/juddi/trunk/juddi-gui-dsig/
Please let us know if there is anything else we can do to help fixing this.
--Kurt
> signing in multi-module project fails on windows
> ------------------------------------------------
>
> Key: MJARSIGNER-13
> URL: https://jira.codehaus.org/browse/MJARSIGNER-13
> Project: Maven 2.x Jar Signer Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP, android sdk
> Reporter: Anna Gadomska
> Attachments: pom.xml
>
>
> 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:
> {noformat}
> [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]
> {noformat}
> Attaching pom file which I am using.
> Please help?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira