]> source.dussan.org Git - archiva.git/commitdiff
[MRM-623] generate the certificate as part of the build instead
authorBrett Porter <brett@apache.org>
Fri, 14 Dec 2007 04:37:50 +0000 (04:37 +0000)
committerBrett Porter <brett@apache.org>
Fri, 14 Dec 2007 04:37:50 +0000 (04:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@604101 13f79535-47bb-0310-9956-ffa450edef68

archiva-web/archiva-applet/pom.xml
archiva-web/archiva-applet/src/keystore/keystore [deleted file]

index 40717c823817efbcb78b1d7cd9114e1bc66a21a6..3ddb812cc1e25b64e674a50f9fcfb3f035443cf9 100644 (file)
   </description>
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>keytool-maven-plugin</artifactId>
+        <version>1.0-beta-1</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>clean</goal>
+              <goal>genkey</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+           <keystore>target/keystore</keystore>
+           <dname>cn=Brett Porter, ou=Archiva, L=Sydney, ST=NSW, o=Apache Software Foundation, c=AU</dname>
+           <keypass>password</keypass>
+           <storepass>password</storepass>
+           <validity>10000</validity>
+        </configuration>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <version>2.1</version>
         <configuration>
-          <keystore>src/keystore/keystore</keystore>
+          <keystore>target/keystore</keystore>
           <alias>mykey</alias>
           <storepass>password</storepass>
           <keypass>password</keypass>
diff --git a/archiva-web/archiva-applet/src/keystore/keystore b/archiva-web/archiva-applet/src/keystore/keystore
deleted file mode 100644 (file)
index 7c513ad..0000000
Binary files a/archiva-web/archiva-applet/src/keystore/keystore and /dev/null differ