-
Notifications
You must be signed in to change notification settings - Fork 562
/
pom.xml
95 lines (95 loc) · 3.34 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?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>1.13.3-SNAPSHOT</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 Keystore</name>
<build>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes><include>*.ks</include></includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<id>generate-key</id>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
def keystore = new File(project.properties['webstart.keystore'])
if (!keystore.exists()) {
keystore.parentFile.mkdirs();
println "keystore is missing, generating for alias '${project.properties['webstart.keyalias']}'"
def args = [
keystore: project.properties['webstart.keystore'],
alias: project.properties['webstart.keyalias'],
storepass: project.properties['webstart.storepass'],
dname: "cn=${project.properties['webstart.dnameCn']}"
]
if (project.properties['webstart.keypass']) {
args.put('keypass', project.properties['webstart.keypass'])
}
def ant = new AntBuilder();
ant.genkey(args)
}
</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.gmaven.runtime</groupId>
<artifactId>gmaven-runtime-1.7</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.7.5</version>
</dependency>
<!-- Needed for AntBuilder calls in remote poller projects -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
<configuration>
<providerSelection>1.7</providerSelection>
</configuration>
</plugin>
<!--
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/keystore.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>