pom.xml 8.45 KB
Newer Older
Mike Prechtl's avatar
Mike Prechtl committed
1
2
3
4
<?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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

5
6
7
	<parent>
		<groupId>org.openecard</groupId>
		<artifactId>packager</artifactId>
8
		<version>1.4.0-rc.3-SNAPSHOT</version>
9
10
	</parent>

Mike Prechtl's avatar
Mike Prechtl committed
11
	<groupId>org.openecard.clients</groupId>
12
	<artifactId>richclient-packager</artifactId>
13
	<packaging>pom</packaging>
14
	<name>Rich Client (Packager)</name>
Mike Prechtl's avatar
Mike Prechtl committed
15
16
17


	<properties>
18
		<maven.compiler.release>11</maven.compiler.release>
Mike Prechtl's avatar
Mike Prechtl committed
19
20
	</properties>

21

22
23
24
25
26
27
28
29
30
31
32
33
34
35
	<repositories>
		<repository>
			<id>openecard-repos</id>
			<name>Openecard Repos</name>
			<url>https://mvn.ecsec.de/repository/openecard-public</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>openecard-repos</id>
			<url>https://mvn.ecsec.de/repository/openecard-public</url>
		</pluginRepository>
	</pluginRepositories>
Mike Prechtl's avatar
Mike Prechtl committed
36

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

	<profiles>
		<profile>
			<id>app-bundles-Linux</id>
			<activation>
				<os>
					<family>Unix</family>
				</os>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>net.agilhard.maven.plugins</groupId>
						<artifactId>jlink-jpackager-maven-plugin</artifactId>
						<configuration>
52
							<icon>${project.basedir}/src/main/resources/linux/Open-eCard-App.png</icon>
53
							<resourceDir>${project.basedir}/src/main/resources/linux</resourceDir>
54
							<type>deb</type>
55
56
57
58
59
60
61
62
63
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>app-bundles-win</id>
			<activation>
				<os>
64
					<family>windows</family>
65
66
67
68
69
70
71
72
				</os>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>net.agilhard.maven.plugins</groupId>
						<artifactId>jlink-jpackager-maven-plugin</artifactId>
						<configuration>
73
							<icon>${project.basedir}/src/main/resources/windows/Open-eCard-App.ico</icon>
74
							<type>exe</type>
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>app-bundles-mac</id>
			<activation>
				<os>
					<family>mac</family>
				</os>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>net.agilhard.maven.plugins</groupId>
						<artifactId>jlink-jpackager-maven-plugin</artifactId>
						<configuration>
93
94
							<icon>${project.basedir}/src/main/resources/mac-os/Open-eCard-App.icns</icon>
							<resourceDir>${project.basedir}/src/main/resources/mac-os</resourceDir>
95
96
97
98
99
100
101
102
103
							<type>dmg</type>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>


Mike Prechtl's avatar
Mike Prechtl committed
104
105
	<build>
		<plugins>
106
107
108
109
110
111
112
113
114
115
116
117
118
119
			<!-- Plugin to reuse project version for installers -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>parse-version</id>
						<phase>validate</phase>
						<goals>
							<goal>parse-version</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
120
			<!-- Maven compiler plugin -->
Mike Prechtl's avatar
Mike Prechtl committed
121
122
123
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
				<configuration>
					<showDeprecation>true</showDeprecation>
					<showWarnings>true</showWarnings>
					<debug>true</debug>
					<debuglevel>source,lines,vars</debuglevel>
					<optimize>false</optimize>
				</configuration>
				<executions>
					<execution>
						<id>default-compile</id>
						<goals>
							<goal>compile</goal>
						</goals>
					</execution>
				</executions>
Mike Prechtl's avatar
Mike Prechtl committed
139
			</plugin>
140
141
142
143
144
145
146
147
			<!-- Skip install step of install-plugin-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-install-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
148
			<!-- Jpackage plugin to create installers -->
Mike Prechtl's avatar
Mike Prechtl committed
149
			<plugin>
150
151
152
				<groupId>net.agilhard.maven.plugins</groupId>
				<artifactId>jlink-jpackager-maven-plugin</artifactId>
				<extensions>true</extensions>
153
154
				<executions>
					<execution>
155
156
						<id>jlink</id>
						<phase>prepare-package</phase>
157
158
159
						<goals>
							<goal>jlink</goal>
						</goals>
160
161
162
163
164
165
166
167
168
169
170
171
172
						<configuration>
							<!-- JLink arguments -->
							<launcher>open-ecard=org.openecard.richclient/org.openecard.richclient.RichClient</launcher>
							<compress>2</compress>
							<noHeaderFiles>true</noHeaderFiles>
							<noManPages>true</noManPages>
							<stripDebug>true</stripDebug>
							<ignoreSigningInformation>true</ignoreSigningInformation>
							<outputDirectoryImage>${project.build.directory}/open-ecard</outputDirectoryImage>
							<jdkToolchain>
								<version>11</version>
							</jdkToolchain>
						</configuration>
173
					</execution>
174
175
176
177
178
179
180
181
					<execution>
						<id>jpackage</id>
						<phase>package</phase>
						<goals>
							<goal>jpackager</goal>
						</goals>
						<configuration>
							<!-- Jpackage arguments -->
182
183
							<!-- Don't use spaces in application name, because of problems with install scripts ... -->
							<name>open-ecard</name>
184
							<identifier>org.openecard.richclient</identifier>
185
							<appVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</appVersion>
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
							<module>org.openecard.richclient/org.openecard.richclient.RichClient</module>
							<jdkToolchain>
								<version>[14,)</version>
							</jdkToolchain>
							<runtimeImage>${project.build.directory}/open-ecard</runtimeImage>
							<skipModulesInclude>true</skipModulesInclude>
							<!-- JVM arguments of the application -->
							<arguments>
								<argument>-XX:-UsePerfData</argument>
								<argument>-XX:-Inline</argument>
								<argument>-XX:+AggressiveOpts</argument>
								<argument>-Xms16m</argument>
								<argument>-Xmx64m</argument>
								<argument>-XX:+UseG1GC</argument>
								<argument>-XX:MinHeapFreeRatio=1</argument>
								<argument>-XX:MaxHeapFreeRatio=5</argument>
								<argument>-XX:G1ReservePercent=5</argument>
								<argument>-Djavax.xml.stream.isSupportingExternalEntities=false</argument>
								<argument>-Djavax.xml.stream.supportDTD=false</argument>
							</arguments>
							<!-- Application package metadata -->
207
							<vendor>ecsec GmbH</vendor>
208
							<description>Client side implementation of the eCard-API-Framework (BSI TR-03112)</description>
209
210
211
							<licenseFile>${project.basedir}/src/main/resources/licenses/LICENSE.GPL</licenseFile>
							<copyright>2019 ecsec GmbH</copyright>
							<linuxOptions>
212
								<bundleName>open-ecard</bundleName>
213
214
								<debMaintainer>tobias.wich@ecsec.de</debMaintainer>
								<rpmLicenseType>GPL v3</rpmLicenseType>
215
								<menuGroup>Network;</menuGroup>
216
								<packageDeps>pcscd</packageDeps>
217
218
							</linuxOptions>
							<macOptions>
219
220
								<bundleName>Open eCard</bundleName>
								<bundleIdentifier>org.openecard.richclient</bundleIdentifier>
221
222
223
224
							</macOptions>
							<windowsOptions>
								<dirChooser>true</dirChooser>
								<menuGroup>misc</menuGroup>
225
								<upgradeUUID>CB11CB66-71B5-42C1-8076-15F1FEDCC22A</upgradeUUID>
226
227
228
							</windowsOptions>
						</configuration>
					</execution>
229
				</executions>
Mike Prechtl's avatar
Mike Prechtl committed
230
231
232
233
234
			</plugin>
		</plugins>
	</build>

	<dependencies>
235
		<!-- Open eCard RichClient Bundle -->
Mike Prechtl's avatar
Mike Prechtl committed
236
237
		<dependency>
			<groupId>org.openecard.clients</groupId>
238
			<artifactId>richclient-bundle</artifactId>
239
			<version>${project.version}</version>
240
241
242
243
244
245
			<exclusions>
				<exclusion>
					<groupId>org.openecard.clients</groupId>
					<artifactId>richclient</artifactId>
				</exclusion>
			</exclusions>
Mike Prechtl's avatar
Mike Prechtl committed
246
247
		</dependency>

248
		<!-- JavaFX -->
Mike Prechtl's avatar
Mike Prechtl committed
249
		<dependency>
250
251
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-controls</artifactId>
Mike Prechtl's avatar
Mike Prechtl committed
252
		</dependency>
Mike Prechtl's avatar
Mike Prechtl committed
253
		<dependency>
254
255
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-swing</artifactId>
Mike Prechtl's avatar
Mike Prechtl committed
256
		</dependency>
257
258

		<!-- BouncyCastle -->
Mike Prechtl's avatar
Mike Prechtl committed
259
		<dependency>
260
261
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-jdk15on</artifactId>
Mike Prechtl's avatar
Mike Prechtl committed
262
		</dependency>
Mike Prechtl's avatar
Mike Prechtl committed
263
		<dependency>
264
265
			<groupId>org.bouncycastle</groupId>
			<artifactId>bctls-jdk15on</artifactId>
Mike Prechtl's avatar
Mike Prechtl committed
266
267
		</dependency>
		<dependency>
268
269
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcpkix-jdk15on</artifactId>
Mike Prechtl's avatar
Mike Prechtl committed
270
271
		</dependency>

272
		<!-- JAXB -->
Mike Prechtl's avatar
Mike Prechtl committed
273
		<dependency>
274
275
276
277
278
279
280
281
			<groupId>org.glassfish.jaxb</groupId>
			<artifactId>jaxb-runtime</artifactId>
			<exclusions>
				<exclusion>
					<groupId>jakarta.activation</groupId>
					<artifactId>jakarta.activation-api</artifactId>
				</exclusion>
			</exclusions>
Mike Prechtl's avatar
Mike Prechtl committed
282
283
		</dependency>
		<dependency>
284
285
286
			<groupId>com.sun.activation</groupId>
			<artifactId>jakarta.activation</artifactId>
			<version>1.2.2-20190731</version>
Mike Prechtl's avatar
Mike Prechtl committed
287
288
289
290
		</dependency>
	</dependencies>

</project>