forked from t-oster/VisiCut
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
251 lines (248 loc) · 10.9 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
<?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>de.thomas-oster</groupId>
<artifactId>visicut</artifactId>
<version>1.9-SNAPSHOT</version>
<name>VisiCut</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.11</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>0.3.12</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.scribe</groupId>
<artifactId>scribe</artifactId>
<version>1.3.7</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-svg</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-xslt</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>2.1.6.RELEASE</version>
</dependency>
<dependency>
<groupId>guru.nidi.com.kitfox</groupId>
<artifactId>svgSalamander</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.1</version>
<type>jar</type>
</dependency>
<!-- Needed?
<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>AbsoluteLayout</artifactId>
<version>RELEASE111</version>
</dependency -->
<dependency>
<groupId>org.jdesktop</groupId>
<artifactId>appframework</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.jdesktop</groupId>
<artifactId>beansbinding</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>liblasercut</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.19</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>gov.nist.math</groupId>
<artifactId>jama</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.freehep</groupId>
<artifactId>freehep-psviewer</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-dom</artifactId>
<version>1.17</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svggen</artifactId>
<version>1.17</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.7</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>2.1.4</version>
<type>jar</type>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<!-- install non-maven dependencies from legacy folder -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-external-kabeja</id>
<phase>initialize</phase>
<configuration>
<repositoryLayout>default</repositoryLayout>
<groupId>org.kabeja</groupId>
<artifactId>kabeja</artifactId>
<version>0.4</version>
<file>${project.basedir}/legacy/kabeja-0.4.jar</file>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-external-kabeja-svg</id>
<phase>initialize</phase>
<configuration>
<repositoryLayout>default</repositoryLayout>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-svg</artifactId>
<version>0.4</version>
<file>${project.basedir}/legacy/kabeja-svg-0.4.jar</file>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
<execution>
<id>install-external-kabeja-xslt</id>
<phase>initialize</phase>
<configuration>
<repositoryLayout>default</repositoryLayout>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-xslt</artifactId>
<version>0.4</version>
<file>${project.basedir}/legacy/kabeja-xslt.jar</file>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- set main class -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>de.thomas_oster.visicut.gui.VisicutApp</mainClass>
</manifest>
<manifestEntries>
<SplashScreen-Image>de/thomas_oster/visicut/gui/resources/splash.png</SplashScreen-Image>
<!-- Avoid "Illegal reflective access" errors, see https://stackoverflow.com/a/62629201 for how to find the module and package names corresponding to a certain error message. See https://stackoverflow.com/questions/70196098/how-can-i-specify-add-opens-from-a-project-level-and-make-sure-it-is-taken-int for further discussion. -->
<!-- CAUTION: Any changes to Add-Opens here must be copied and adapted in all places in nbactions.xml (search for "add-opens" there). -->
<Add-Opens>
<!-- for org.dom4j.... (on Java11 only, not on Java 17?)"-->
java.xml/com.sun.org.apache.xerces.internal.parsers
<!-- loading of GTK icons on Linux (PlatformIcon class) -->
java.desktop/sun.awt
<!-- XStream (load/save settings)-->
java.base/java.util java.desktop/java.awt.geom <!-- definitely needed to save/read settings on all platforms -->
java.desktop/java.awt <!-- definitely needed to save settings.private.xml on Windows (and others?) -->
java.base/java.lang java.base/java.io java.base/java.text java.base/java.time java.base/java.time.chrono java.base/java.util java.base/java.util.concurrent <!-- snake-oil, just to be sure, from https://github.com/x-stream/xstream/issues/262#issuecomment-1247342505 -->
<!-- Needed for net.sf.corn http client used in LibLasercut, See issue #196 -->
java.base/sun.net.www.protocol.http
</Add-Opens>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- build fat jar-with-dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>full</shadedClassifierName>
</configuration>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>