forked from DalekCraft2/Shimeji-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
274 lines (263 loc) · 12.3 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>com.group_finity</groupId>
<artifactId>mascot</artifactId>
<version>1.0.21.2</version>
<packaging>jar</packaging>
<name>Shimeji-ee</name>
<description/>
<url>https://github.com/DalekCraft2/Shimeji-Desktop</url>
<inceptionYear/>
<licenses/>
<scm/>
<issueManagement/>
<ciManagement/>
<distributionManagement/>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<mainClass>com.group_finity.mascot.Main</mainClass>
<libPrefix>lib</libPrefix>
<libDirectory>${project.build.directory}/${libPrefix}</libDirectory>
</properties>
<dependencies>
<dependency>
<!-- AbsoluteLayout -->
<groupId>org.netbeans.external</groupId>
<artifactId>AbsoluteLayout</artifactId>
<version>RELEASE220</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- Java Native Access Platform -->
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>5.14.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- Nimrod Look and Feel -->
<groupId>es.nilogonzalez</groupId>
<artifactId>nimrodlf</artifactId>
<version>1.2d</version>
<scope>system</scope>
<!-- Nimrod L&F has no official Maven artifact, so I am going to use the official download for now. -->
<!-- https://nilogonzalez.es/nimrodlf/download-en.html -->
<systemPath>${project.basedir}/${libPrefix}/nimrodlf-1.2d.jar</systemPath>
</dependency>
<dependency>
<!-- OpenJDK Nashorn -->
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>15.4</version>
<scope>compile</scope>
</dependency>
</dependencies>
<repositories/>
<build>
<defaultGoal>clean package</defaultGoal>
<finalName>${project.name}</finalName>
<!-- <resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}</directory>
<filtering>false</filtering>
<includes>
<include>LICENSE.txt</include>
</includes>
</resource>
</resources> -->
<plugins>
<plugin>
<!-- Compile -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<!-- <plugin>
<!– Attach sources –>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!– Attach Javadocs –>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin> -->
<plugin>
<!-- Set main class -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<classpathPrefix>${libPrefix}/</classpathPrefix>
<mainClass>${mainClass}</mainClass>
</manifest>
<manifestEntries>
<!-- Manually add Nimrod L&F to the classpath because it is a system dependency -->
<Class-Path>${libPrefix}/nimrodlf-1.2d.jar</Class-Path>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<!-- Copy dependencies to target/lib directory -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.7.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${libDirectory}</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Parse version components and create properties for them -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Create an .exe file to run the application -->
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>l4j-clui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${project.build.directory}/${project.build.finalName}.exe</outfile>
<jar>${project.build.finalName}.jar</jar>
<dontWrapJar>true</dontWrapJar>
<downloadUrl>https://www.oracle.com/java/technologies/downloads/</downloadUrl>
<!-- <supportUrl>${project.ciManagement.url}</supportUrl> -->
<chdir>.</chdir>
<icon>${project.basedir}/img/icon.ico</icon>
<classPath>
<mainClass>${mainClass}</mainClass>
</classPath>
<singleInstance>
<mutexName>${project.name}</mutexName>
<windowTitle/>
</singleInstance>
<jre>
<path>%JAVA_HOME%;%PATH%</path>
<requiresJdk>true</requiresJdk>
<minVersion>${maven.compiler.target}</minVersion>
<maxVersion/>
</jre>
<versionInfo>
<!--suppress UnresolvedMavenProperty -->
<!-- <fileVersion>
${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${parsedVersion.buildNumber}
</fileVersion> -->
<!-- This is for whenever we have a version with four components in it, like 1.0.21.1 -->
<fileVersion>${project.version}</fileVersion>
<txtFileVersion>${project.version}</txtFileVersion>
<fileDescription>${project.name} Launcher</fileDescription>
<copyright>Copyright (C) Group-Finity. All rights reserved.</copyright>
<!--suppress UnresolvedMavenProperty -->
<!-- <productVersion>
${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${parsedVersion.buildNumber}
</productVersion> -->
<!-- This is for whenever we have a version with four components in it, like 1.0.21.1 -->
<productVersion>${project.version}</productVersion>
<txtProductVersion>${project.version}</txtProductVersion>
<productName>${project.name}</productName>
<companyName>Group Finity</companyName>
<internalName>${project.artifactId}</internalName>
<originalFilename>${project.build.finalName}.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Generate the ZIP files from the old Ant build.xml script -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<!-- Create ZIP files for the source and the three release variants -->
<id>create-zips</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Define the "version" property for the build.xml script -->
<property name="version" value="${project.version}"/>
<!-- Execute the "zip" target in build.xml -->
<ant antfile="${project.basedir}/build.xml">
<target name="zip"/>
</ant>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>