-
Notifications
You must be signed in to change notification settings - Fork 563
/
pom.xml
52 lines (51 loc) · 1.95 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.opennms.core</groupId>
<artifactId>org.opennms.core.build</artifactId>
<version>19.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.opennms.core.build</groupId>
<artifactId>org.opennms.core.build.keystore</artifactId>
<packaging>jar</packaging>
<name>OpenNMS :: Core :: Build Tools :: Keystore</name>
<build>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes><include>*.ks</include></includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>keytool-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>generateKeyPair</id>
<goals>
<goal>generateKeyPair</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<!-- Don't generate a key if the keystore already exists -->
<skipIfExist>true</skipIfExist>
<keystore>${webstart.keystore}</keystore>
<storepass>${webstart.storepass}</storepass>
<alias>${webstart.keyalias}</alias>
<keypass>${webstart.keypass}</keypass>
<dname>cn=${webstart.dnameCn}</dname>
<!-- I'm not sure if we need these extension attributes -->
<!-- Add X.509 V3 "KeyUsage" attribute -->
<!-- <ext>KU=digitalSignature</ext> -->
<!-- Add X.509 V3 "ExtendedKeyUsage" attribute -->
<!-- <ext>EKU=codeSigning</ext> -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>