Skip to content

Commit 129f511

Browse files
committed
Fixed build by creating keystore for signing nbm only once per build
1 parent 2c0b80e commit 129f511

1 file changed

Lines changed: 24 additions & 23 deletions

File tree

pom.xml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,30 @@
759759
</pluginManagement>
760760

761761
<plugins>
762+
<plugin>
763+
<groupId>org.codehaus.mojo</groupId>
764+
<artifactId>keytool-maven-plugin</artifactId>
765+
<executions>
766+
<execution>
767+
<goals>
768+
<goal>generateKeyPair</goal>
769+
</goals>
770+
<phase>generate-resources</phase>
771+
</execution>
772+
</executions>
773+
<configuration>
774+
<skipIfExist>true</skipIfExist>
775+
<keystore>${keystore.file}</keystore>
776+
<storepass>${keystore.pass}</storepass>
777+
<keypass>${keystore.pass}</keypass>
778+
<alias>${project.artifactId}</alias>
779+
<dname>CN=funfried.de, OU=${project.artifactId}, O=funfried.de, L=Schwaebisch Hall, ST=Baden-Wuerttemberg, C=DE</dname>
780+
<validity>730</validity>
781+
<keysize>2048</keysize>
782+
<sigalg>SHA512withRSA</sigalg>
783+
<keyalg>RSA</keyalg>
784+
</configuration>
785+
</plugin>
762786
<plugin>
763787
<groupId>org.apache.netbeans.utilities</groupId>
764788
<artifactId>nbm-maven-plugin</artifactId>
@@ -1098,29 +1122,6 @@
10981122
<id>release-commons</id>
10991123
<build>
11001124
<plugins>
1101-
<plugin>
1102-
<groupId>org.codehaus.mojo</groupId>
1103-
<artifactId>keytool-maven-plugin</artifactId>
1104-
<executions>
1105-
<execution>
1106-
<goals>
1107-
<goal>generateKeyPair</goal>
1108-
</goals>
1109-
<phase>initialize</phase>
1110-
</execution>
1111-
</executions>
1112-
<configuration>
1113-
<keystore>${keystore.file}</keystore>
1114-
<storepass>${keystore.pass}</storepass>
1115-
<keypass>${keystore.pass}</keypass>
1116-
<alias>${project.artifactId}</alias>
1117-
<dname>CN=funfried.de, OU=${project.artifactId}, O=funfried.de, L=Schwaebisch Hall, ST=Baden-Wuerttemberg, C=DE</dname>
1118-
<validity>730</validity>
1119-
<keysize>2048</keysize>
1120-
<sigalg>SHA512withRSA</sigalg>
1121-
<keyalg>RSA</keyalg>
1122-
</configuration>
1123-
</plugin>
11241125
<plugin>
11251126
<groupId>org.apache.maven.plugins</groupId>
11261127
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)