Get keytool error: "java.lang.Exception: Key pair not generated, alias <Admin 
Tool> already exists" when running "mvn findbugs:findbugs install"
------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: MWEBSTART-133
                 URL: http://jira.codehaus.org/browse/MWEBSTART-133
             Project: Maven 2.x Webstart Plugin
          Issue Type: Bug
          Components: keytool
         Environment: Ubuntu 9.04
JDK 1.6.0_13
            Reporter: Stephen Kinser


Running 2 goals in one invocation (e.g. findbugs:findbugs and install) when 
using webstart-maven-plugin with auto keystore generation fails with the 
following. It succeeds when running one goal at a time. It looks like the 
plugin isn't reentrant.

[WARNING] Something failed while checking if the main class contains the main() 
method. This is probably due to the limited classpath we have provided to the 
class loader. The specified main class (org.cas.admin.ui.CasAdminMain) found in 
the jar is *assumed* to contain a main method... org/cis/client/IdentityManager
[INFO] keytool error: java.lang.Exception: Key pair not generated, alias <Admin 
Tool> already exists
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Result of /bin/sh -c 'cd 
/home/kinsersh/sandbox/identity/cas/trunk/cas/cas-admin-webstart/target/jnlp && 
/usr/lib/jvm/java-6-sun-1.6.0.13/jre/../bin/keytool -genkey -dname 
"CN=www.cas.org, OU=CAS, L=Salt Lake City, ST=Utah, O=CAS, C=US" -alias "Admin 
Tool" -keypass CAS -keystore 
/home/kinsersh/sandbox/identity/cas/trunk/cas/cas-admin-webstart/target/keystore
 -storepass CAS -validity 365' execution is: '1': .
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Wed Jun 10 17:50:40 MDT 2009
[INFO] Final Memory: 26M/120M
[INFO] ------------------------------------------------------------------------
kinse...@ws-kinsersh:~/sandbox/identity/cas/trunk/cas/cas-admin-webstart$ mvn 
clean findbugs:findbugs



Here's the section from the pom:

<plugin>
        <groupId>org.codehaus.mojo.webstart</groupId>
        <artifactId>webstart-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <goals>
              <goal>jnlp-download-servlet</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <sign>
            <keystore>${project.build.directory}/keystore</keystore>
            <keypass>CAS</keypass>
            <storepass>CAS</storepass>
            <alias>Admin Tool</alias>
            <validity>365</validity>
            <dnameCn>www.cas.org</dnameCn>
            <dnameOu>CAS</dnameOu>
            <dnameO>CAS</dnameO>
            <dnameL>Salt Lake City</dnameL>
            <dnameSt>Utah</dnameSt>
            <dnameC>US</dnameC>
            <verify>true</verify>
            <keystoreConfig>
              <delete>false</delete>
              <gen>true</gen>
            </keystoreConfig>
          </sign>
          <jnlpFiles>
            <jnlpFile>
              <templateFilename>adminJnlpTemplate.vm</templateFilename>
              <jarResources>
                <jarResource>
                  <groupId>org.cas</groupId>
                  <artifactId>cas-admin-app</artifactId>
                  <version>${project.version}</version>
                  <mainClass>org.cas.admin.ui.CasAdminMain</mainClass>
                </jarResource>
              </jarResources>
            </jnlpFile>
          </jnlpFiles>
        </configuration>
      </plugin>


-- 
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