I run keytool-maven-plugin tests on windows and they are fine.

Can you cook up a pom which can reproduce your issue?

here is my unit test output.

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.codehaus.mojo.keytool.CleanKeyMojoTest
[info] Keystore file 'C:\DOCUME~1\dtran\LOCALS~1\Temp\\.keystore' deleted
succes
sfully.
[warn] Keystore file '.keystoreZXCVBNNM' doesn't exist.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.391 sec
Running org.codehaus.mojo.keytool.GenkeyMojoTest
[debug] keytool executable=[C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jr
e\..\bin\keytool.exe]
[debug] Executing: "C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jre\..\bin
\keytool.exe" -genkey -dname "cn=www.example.com, ou=None, L=Seattle,
ST=Washing
ton, o=ExampleOrg, c=US" -keypass secretpassword -storepass secretpassword2
[debug] keytool executable=[C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jr
e\..\bin\keytool.exe]
[debug] mdkirs: false \tmp
[debug] Executing: "C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jre\..\bin
\keytool.exe" -genkey -v -dname "cn=www.example.com, ou=None, L=Seattle,
ST=Wash
ington, o=ExampleOrg, c=US" -alias alias -keypass secretpassword -keystore
/tmp/
keystore -storepass secretpassword2 -validity 90 -keyalg DSA -keysize 1024
-siga
lg SHA1withDSA -storetype jks
[debug] keytool executable=[C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jr
e\..\bin\keytool.exe]
[debug] mdkirs: false \invalid
[debug] Executing: "C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jre\..\bin
\keytool.exe" -genkey -dname "cn=www.example.com, ou=None, L=Seattle,
ST=Washing
ton, o=ExampleOrg, c=US" -keypass secretpassword -keystore /invalid/path
-storep
ass secretpassword2
[debug] keytool executable=[C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jr
e\..\bin\keytool.exe]
[debug] Executing: "C:\Program Files\Java\jrockit-
R27.1.0-jdk1.5.0_08\jre\..\bin
\keytool.exe" -genkey -dname "cn=www.example.com, ou=None, L=Seattle,
ST=Washing
ton, o=ExampleOrg, c=US" -keypass secretpassword -storepass secretpassword2
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.1 sec



On 2/22/07, Frank Cornelis (JIRA) <[EMAIL PROTECTED]> wrote:

keytool-maven-plugin:genkey fails on "C:\Program Files\...\keytool.exe"
-----------------------------------------------------------------------

                Key: MOJO-654
                URL: http://jira.codehaus.org/browse/MOJO-654
            Project: Mojo
         Issue Type: Bug
         Components: General
        Environment: Windows XP
           Reporter: Frank Cornelis
           Priority: Blocker


The keytool-maven-plugin works fine under Linux and Mac OS X, but when
trying to build the same project under Windows XP we get the following
noise:

[INFO] [keytool:genkey {execution: default}]
[WARNING] C:\Program wordt niet herkend als een interne
[WARNING] of externe opdracht, programma of batchbestand.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------

This is because the plugin tries to execute:
C:\Program
instead of
C:\Program Files\Java\jdk1.5.0_11\bin\keytool.exe

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to