Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7880

The HotRod server build fails if test keys already exist

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.0.1.Final
    • Fix Version/s: 9.1.0.Alpha1
    • Component/s: Build
    • Labels:
      None

      Description

      Reproducible by invoking `mvn install` twice (without `clean`):

      [INFO] --- keytool-maven-plugin:1.5:generateKeyPair (password_server) @ infinispan-server-hotrod ---
      [INFO] /bin/sh -c cd /home/dan/Work/infinispan/server/hotrod && /home/dan/Tools/jdk1.8.0_121/jre/../bin/keytool -genkeypair -v -keystore /home/dan/Work/infinispan/server/hotrod/target/test-classes/password_server_keystore.jks -storepass secret -alias default -dname 'CN=HotRod_1,OU=Infinispan,O=JBoss,L=Red Hat,ST=World,C=WW' -keypass secret -validity 365 -keyalg RSA -keysize 2048
      [INFO] keytool error: java.lang.Exception: Key pair not generated, alias <default> already exists
      [INFO] java.lang.Exception: Key pair not generated, alias <default> already exists
      [INFO] 	at sun.security.tools.keytool.Main.doGenKeyPair(Main.java:1597)
      [INFO] 	at sun.security.tools.keytool.Main.doCommands(Main.java:966)
      [INFO] 	at sun.security.tools.keytool.Main.run(Main.java:343)
      [INFO] 	at sun.security.tools.keytool.Main.main(Main.java:336)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dan.berindei Dan Berindei
                  Reporter:
                  dan.berindei Dan Berindei
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: