-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
144 lines (130 loc) · 5.2 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.codehaus.mojo.webstart.it002</groupId>
<artifactId>webstart-it002-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>webapp</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>WebstartDemoWebApplication</name>
<url>http://maven.apache.org</url>
<description>
Web-application to demonstrate the WebstartMavenPlugin.
</description>
<organization>
<name>MyCompany</name>
<url>http://www.mycompany.org</url>
</organization>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.webstart</groupId>
<!--groupId>com.sun.java.jnlp</groupId-->
<artifactId>webstart-jnlp-servlet</artifactId>
<version>1.0-6.0.02_ea_b02.1-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.webstart</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>jnlp-download-servlet</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectoryName>webstart</outputDirectoryName>
<jnlpFiles>
<jnlpFile>
<templateFilename>jnlpTemplate.vm</templateFilename>
<jarResources>
<jarResource>
<groupId>org.codehaus.mojo.webstart.it002</groupId>
<artifactId>hello-world</artifactId>
<version>1.0</version>
<mainClass>org.mycompany.webstart.HelloWorld</mainClass>
</jarResource>
</jarResources>
</jnlpFile>
</jnlpFiles>
<sign>
<keystore>${project.build.directory}/keyStore</keystore> <!-- path or URI (if empty, the default keystore ".keystore"-file in the user-homedir is used) -->
<keypass>password</keypass> <!-- we need to override passwords easily from the command line. ${keypass} -->
<storepass>password</storepass> <!-- ${storepass} -->
<alias>webstart</alias> <!-- alias of the key to use -->
<!-- the following key-settings are only used if the keystore and key has to be generated at build-time -->
<storetype>jks</storetype>
<validity>365</validity>
<dnameCn>Firstname Lastname</dnameCn>
<dnameOu>OrganisationalUnit</dnameOu>
<dnameO>Organisation</dnameO>
<dnameL>Location</dnameL>
<dnameSt>State</dnameSt>
<dnameC>CountryCode</dnameC>
<!-- KEYSTORE MANGEMENT -->
<keystoreConfig>
<delete>true</delete> <!-- delete the keystore at build time -->
<gen>true</gen> <!-- generate keystore and key at build time -->
</keystoreConfig>
<verify>false</verify> <!-- verify the signature after signing -->
</sign>
<unsign>true</unsign> <!-- unsign already signed packages and sign them with own key -->
<verifyjar>false</verifyjar>
</configuration>
</plugin>
</plugins>
<finalName>webapp</finalName>
</build>
<profiles>
<profile>
<id>jettyConfig</id>
<activation>
<property>
<name>with-jetty</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.6</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>run-war</goal>
</goals>
</execution>
</executions>
<configuration>
<!--connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8181</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors-->
<!--scanIntervalSeconds>2</scanIntervalSeconds-->
<webApp></webApp>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>