1 | <?xml version="1.0"?>
|
---|
2 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
---|
3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0">
|
---|
4 | <modelVersion>4.0.0</modelVersion>
|
---|
5 | <artifactId>josm</artifactId>
|
---|
6 | <parent>
|
---|
7 | <groupId>org.openstreetmap.josm</groupId>
|
---|
8 | <artifactId>josm-parent</artifactId>
|
---|
9 | <version>1.0-SNAPSHOT</version>
|
---|
10 | <relativePath>./nodist/pom.xml</relativePath>
|
---|
11 | </parent>
|
---|
12 |
|
---|
13 | <name>josm</name>
|
---|
14 | <url>https://josm.openstreetmap.de</url>
|
---|
15 | <properties>
|
---|
16 | <src.dir>${project.basedir}/src</src.dir>
|
---|
17 | <test.dir>${project.basedir}/test</test.dir>
|
---|
18 | <scripts.src.dir>${project.basedir}/scripts</scripts.src.dir>
|
---|
19 | <build.dir>${project.basedir}/build</build.dir>
|
---|
20 | <dist.dir>${project.basedir}/dist</dist.dir>
|
---|
21 | <checkstyle-build.dir>${project.basedir}/build2</checkstyle-build.dir>
|
---|
22 | <checkstyle.dir>${tools.dir}/checkstyle</checkstyle.dir>
|
---|
23 | <mapcss.dir>${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss</mapcss.dir>
|
---|
24 | <modules.dir>${dist.dir}/modules</modules.dir>
|
---|
25 | <pmd.dir>${tools.dir}/pmd</pmd.dir>
|
---|
26 | <proj-build.dir>${project.basedir}/build2</proj-build.dir>
|
---|
27 | <resources.dir>${project.basedir}/resources</resources.dir>
|
---|
28 | <script-build.dir>${project.basedir}/build2</script-build.dir>
|
---|
29 | <spotbugs.dir>${tools.dir}/spotbugs</spotbugs.dir>
|
---|
30 | <tools.dir>${project.basedir}/tools</tools.dir>
|
---|
31 | <epsg.output>${resources.dir}/data/projection/custom-epsg</epsg.output>
|
---|
32 | <javacc.home>${tools.dir}</javacc.home>
|
---|
33 | <dist.jar>${dist.dir}/josm-custom.jar</dist.jar>
|
---|
34 | <dist-optimized.jar>${dist.dir}/josm-custom-optimized.jar</dist-optimized.jar>
|
---|
35 | <dist-sources.jar>${dist.dir}/josm-custom-sources.jar</dist-sources.jar>
|
---|
36 | <jacoco.includes>org.openstreetmap.josm.*</jacoco.includes>
|
---|
37 | <jacoco.inclbootstrapclasses>false</jacoco.inclbootstrapclasses>
|
---|
38 | <jacoco.inclnolocationclasses>false</jacoco.inclnolocationclasses>
|
---|
39 | <junit.printsummary>on</junit.printsummary>
|
---|
40 | <default-junit-includes>**/*Test.class</default-junit-includes>
|
---|
41 | <default-junitIT-includes>**/*TestIT.class</default-junitIT-includes>
|
---|
42 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
---|
43 | </properties>
|
---|
44 | <packaging>jar</packaging>
|
---|
45 | <inceptionYear>2005</inceptionYear>
|
---|
46 | <licenses>
|
---|
47 | <license>
|
---|
48 | <name>GPL-2.0-or-later</name>
|
---|
49 | <url>https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html</url>
|
---|
50 | <distribution>repo</distribution>
|
---|
51 | </license>
|
---|
52 | </licenses>
|
---|
53 | <organization>
|
---|
54 | <name>JOSM</name>
|
---|
55 | <url>https://josm.openstreetmap.de</url>
|
---|
56 | </organization>
|
---|
57 | <scm>
|
---|
58 | <connection>scm:svn:https://josm.openstreetmap.de/svn/trunk</connection>
|
---|
59 | <url>https://josm.openstreetmap.de/browser/josm/trunk</url>
|
---|
60 | </scm>
|
---|
61 | <issueManagement>
|
---|
62 | <system>Trac</system>
|
---|
63 | <url>https://josm.openstreetmap.de</url>
|
---|
64 | </issueManagement>
|
---|
65 | <mailingLists>
|
---|
66 | <mailingList>
|
---|
67 | <name>josm-dev</name>
|
---|
68 | <archive>https://lists.openstreetmap.org/pipermail/josm-dev/</archive>
|
---|
69 | <post>josm-dev@openstreetmap.org</post>
|
---|
70 | </mailingList>
|
---|
71 | </mailingLists>
|
---|
72 |
|
---|
73 | <dependencies>
|
---|
74 | <dependency>
|
---|
75 | <groupId>org.jmockit</groupId>
|
---|
76 | <artifactId>jmockit</artifactId>
|
---|
77 | </dependency>
|
---|
78 | <dependency>
|
---|
79 | <groupId>org.openstreetmap.jmapviewer</groupId>
|
---|
80 | <artifactId>jmapviewer</artifactId>
|
---|
81 | <scope>compile</scope>
|
---|
82 | </dependency>
|
---|
83 | <dependency>
|
---|
84 | <groupId>jakarta.json</groupId>
|
---|
85 | <artifactId>jakarta.json-api</artifactId>
|
---|
86 | <scope>compile</scope>
|
---|
87 | </dependency>
|
---|
88 | <dependency>
|
---|
89 | <groupId>org.eclipse.parsson</groupId>
|
---|
90 | <artifactId>parsson</artifactId>
|
---|
91 | <scope>runtime</scope>
|
---|
92 | </dependency>
|
---|
93 | <dependency>
|
---|
94 | <groupId>org.apache.commons</groupId>
|
---|
95 | <artifactId>commons-jcs3-core</artifactId>
|
---|
96 | <scope>compile</scope>
|
---|
97 | </dependency>
|
---|
98 | <dependency>
|
---|
99 | <groupId>org.apache.commons</groupId>
|
---|
100 | <artifactId>commons-compress</artifactId>
|
---|
101 | <scope>compile</scope>
|
---|
102 | </dependency>
|
---|
103 | <dependency>
|
---|
104 | <groupId>jakarta.annotation</groupId>
|
---|
105 | <artifactId>jakarta.annotation-api</artifactId>
|
---|
106 | <scope>compile</scope>
|
---|
107 | </dependency>
|
---|
108 | <dependency>
|
---|
109 | <groupId>org.tukaani</groupId>
|
---|
110 | <artifactId>xz</artifactId>
|
---|
111 | <scope>compile</scope>
|
---|
112 | </dependency>
|
---|
113 | <dependency>
|
---|
114 | <groupId>com.adobe.xmp</groupId>
|
---|
115 | <artifactId>xmpcore</artifactId>
|
---|
116 | <scope>compile</scope>
|
---|
117 | </dependency>
|
---|
118 | <dependency>
|
---|
119 | <groupId>com.drewnoakes</groupId>
|
---|
120 | <artifactId>metadata-extractor</artifactId>
|
---|
121 | <scope>compile</scope>
|
---|
122 | </dependency>
|
---|
123 | <dependency>
|
---|
124 | <groupId>com.formdev</groupId>
|
---|
125 | <artifactId>svgSalamander</artifactId>
|
---|
126 | <scope>compile</scope>
|
---|
127 | </dependency>
|
---|
128 | <dependency>
|
---|
129 | <groupId>ch.poole</groupId>
|
---|
130 | <artifactId>OpeningHoursParser</artifactId>
|
---|
131 | <scope>compile</scope>
|
---|
132 | </dependency>
|
---|
133 | <!-- Don't forget to update org.openstreetmap.josm.tools.Tag2Link#PREF_SOURCE -->
|
---|
134 | <dependency>
|
---|
135 | <groupId>org.webjars.npm</groupId>
|
---|
136 | <artifactId>tag2link</artifactId>
|
---|
137 | <scope>compile</scope>
|
---|
138 | </dependency>
|
---|
139 | <dependency>
|
---|
140 | <groupId>org.jacoco</groupId>
|
---|
141 | <artifactId>org.jacoco.ant</artifactId>
|
---|
142 | </dependency>
|
---|
143 | <dependency>
|
---|
144 | <groupId>com.github.spotbugs</groupId>
|
---|
145 | <artifactId>spotbugs-annotations</artifactId>
|
---|
146 | </dependency>
|
---|
147 | <dependency>
|
---|
148 | <groupId>com.ginsberg</groupId>
|
---|
149 | <artifactId>junit5-system-exit</artifactId>
|
---|
150 | </dependency>
|
---|
151 | <dependency>
|
---|
152 | <groupId>org.wiremock</groupId>
|
---|
153 | <artifactId>wiremock</artifactId>
|
---|
154 | </dependency>
|
---|
155 | <dependency>
|
---|
156 | <groupId>io.github.classgraph</groupId>
|
---|
157 | <artifactId>classgraph</artifactId>
|
---|
158 | </dependency>
|
---|
159 | <dependency>
|
---|
160 | <groupId>org.junit.platform</groupId>
|
---|
161 | <artifactId>junit-platform-launcher</artifactId>
|
---|
162 | <scope>test</scope>
|
---|
163 | </dependency>
|
---|
164 | <dependency>
|
---|
165 | <groupId>org.junit.platform</groupId>
|
---|
166 | <artifactId>junit-platform-suite</artifactId>
|
---|
167 | <scope>test</scope>
|
---|
168 | </dependency>
|
---|
169 | <dependency>
|
---|
170 | <groupId>org.junit.vintage</groupId>
|
---|
171 | <artifactId>junit-vintage-engine</artifactId>
|
---|
172 | <scope>test</scope>
|
---|
173 | </dependency>
|
---|
174 | <dependency>
|
---|
175 | <groupId>org.junit.jupiter</groupId>
|
---|
176 | <artifactId>junit-jupiter-params</artifactId>
|
---|
177 | <scope>test</scope>
|
---|
178 | </dependency>
|
---|
179 | <dependency>
|
---|
180 | <groupId>org.junit.jupiter</groupId>
|
---|
181 | <artifactId>junit-jupiter-api</artifactId>
|
---|
182 | <scope>test</scope>
|
---|
183 | </dependency>
|
---|
184 | <dependency>
|
---|
185 | <groupId>org.junit.jupiter</groupId>
|
---|
186 | <artifactId>junit-jupiter-engine</artifactId>
|
---|
187 | <scope>test</scope>
|
---|
188 | </dependency>
|
---|
189 | <dependency>
|
---|
190 | <groupId>org.junit.jupiter</groupId>
|
---|
191 | <artifactId>junit-jupiter-migrationsupport</artifactId>
|
---|
192 | <scope>test</scope>
|
---|
193 | </dependency>
|
---|
194 | <dependency>
|
---|
195 | <groupId>net.trajano.commons</groupId>
|
---|
196 | <artifactId>commons-testing</artifactId>
|
---|
197 | </dependency>
|
---|
198 | <dependency>
|
---|
199 | <groupId>nl.jqno.equalsverifier</groupId>
|
---|
200 | <artifactId>equalsverifier</artifactId>
|
---|
201 | </dependency>
|
---|
202 | <dependency>
|
---|
203 | <groupId>org.apache.commons</groupId>
|
---|
204 | <artifactId>commons-lang3</artifactId>
|
---|
205 | </dependency>
|
---|
206 | <dependency>
|
---|
207 | <groupId>org.awaitility</groupId>
|
---|
208 | <artifactId>awaitility</artifactId>
|
---|
209 | </dependency>
|
---|
210 | </dependencies>
|
---|
211 | <build>
|
---|
212 | <sourceDirectory>${src.dir}</sourceDirectory>
|
---|
213 | <testSourceDirectory>${test.dir}/unit</testSourceDirectory>
|
---|
214 | <scriptSourceDirectory>${scripts.src.dir}</scriptSourceDirectory>
|
---|
215 | <resources>
|
---|
216 | <resource>
|
---|
217 | <directory>${resources.dir}</directory>
|
---|
218 | </resource>
|
---|
219 | <resource>
|
---|
220 | <directory>${project.basedir}</directory>
|
---|
221 | <includes>
|
---|
222 | <include>CONTRIBUTION</include>
|
---|
223 | <include>gpl-2.0.txt</include>
|
---|
224 | <include>gpl-3.0.txt</include>
|
---|
225 | <include>LICENSE</include>
|
---|
226 | <include>README</include>
|
---|
227 | <include>REVISION</include>
|
---|
228 | </includes>
|
---|
229 | </resource>
|
---|
230 | </resources>
|
---|
231 | <testResources>
|
---|
232 | <testResource>
|
---|
233 | <directory>${test.dir}/data</directory>
|
---|
234 | </testResource>
|
---|
235 | </testResources>
|
---|
236 | <plugins>
|
---|
237 | <!-- Generate sources -->
|
---|
238 | <plugin>
|
---|
239 | <groupId>org.codehaus.mojo</groupId>
|
---|
240 | <artifactId>javacc-maven-plugin</artifactId>
|
---|
241 | <executions>
|
---|
242 | <execution>
|
---|
243 | <id>javacc</id>
|
---|
244 | <goals>
|
---|
245 | <goal>javacc</goal>
|
---|
246 | </goals>
|
---|
247 | <configuration>
|
---|
248 | <debugParser>false</debugParser>
|
---|
249 | <debugTokenManager>false</debugTokenManager>
|
---|
250 | <jdkVersion>${java.lang.version}</jdkVersion>
|
---|
251 | <grammarEncoding>UTF-8</grammarEncoding>
|
---|
252 | <unicodeInput>true</unicodeInput>
|
---|
253 | <sourceDirectory>${src.dir}</sourceDirectory>
|
---|
254 | <outputDirectory>${src.dir}</outputDirectory>
|
---|
255 | <includes><include>**/MapCSSParser.jj</include></includes>
|
---|
256 | <excludes><exclude>**/*.java</exclude></excludes>
|
---|
257 | </configuration>
|
---|
258 | </execution>
|
---|
259 | </executions>
|
---|
260 | </plugin>
|
---|
261 | <!-- Update proj, epsg, etc. -->
|
---|
262 | <plugin>
|
---|
263 | <groupId>org.codehaus.mojo</groupId>
|
---|
264 | <artifactId>exec-maven-plugin</artifactId>
|
---|
265 | <executions>
|
---|
266 | <!-- mvn test-compile && mvn exec:java@update-proj-reference-files -->
|
---|
267 | <execution>
|
---|
268 | <id>update-proj-reference-files</id>
|
---|
269 | <configuration>
|
---|
270 | <classpathScope>test</classpathScope>
|
---|
271 | <mainClass>org.openstreetmap.josm.data.projection.ProjectionRefTest</mainClass>
|
---|
272 | </configuration>
|
---|
273 | <goals>
|
---|
274 | <goal>java</goal>
|
---|
275 | </goals>
|
---|
276 | </execution>
|
---|
277 | <!-- mvn test-compile && mvn exec:java@update-proj-regression-files -->
|
---|
278 | <execution>
|
---|
279 | <id>update-proj-regression-files</id>
|
---|
280 | <configuration>
|
---|
281 | <classpathScope>test</classpathScope>
|
---|
282 | <mainClass>org.openstreetmap.josm.data.projection.ProjectionRegressionTest</mainClass>
|
---|
283 | </configuration>
|
---|
284 | <goals>
|
---|
285 | <goal>java</goal>
|
---|
286 | </goals>
|
---|
287 | </execution>
|
---|
288 | <!-- mvn compile && mvn exec:java@SyncEditorLayerIndex -->
|
---|
289 | <execution>
|
---|
290 | <id>SyncEditorLayerIndex</id>
|
---|
291 | <configuration>
|
---|
292 | <executable>java</executable>
|
---|
293 | <arguments>
|
---|
294 | <argument>-Djava.awt.headless=true</argument>
|
---|
295 | <argument>-classpath</argument>
|
---|
296 | <classpath/> <!-- Generates the actual classpath using all project dependencies -->
|
---|
297 | <argument>${scripts.src.dir}/SyncEditorLayerIndex.java</argument>
|
---|
298 | <argument>${basedir}</argument>
|
---|
299 | </arguments>
|
---|
300 | <!-- We need commons-lang3, which isn't needed elsewhere in core (besides a test or two) -->
|
---|
301 | <classpathScope>test</classpathScope>
|
---|
302 | </configuration>
|
---|
303 | <goals>
|
---|
304 | <goal>exec</goal>
|
---|
305 | </goals>
|
---|
306 | </execution>
|
---|
307 | <!-- Note that the epsg-touch/epsg executions are NOT duplicates - the first epsg makes an empty file for the
|
---|
308 | next run, which makes a non-empty custom-epsg file -->
|
---|
309 | <execution>
|
---|
310 | <id>epsg-touch</id>
|
---|
311 | <configuration>
|
---|
312 | <executable>java</executable>
|
---|
313 | <arguments>
|
---|
314 | <argument>-Djava.awt.headless=true</argument>
|
---|
315 | <argument>-classpath</argument>
|
---|
316 | <classpath/> <!-- Generates the actual classpath using all project dependencies -->
|
---|
317 | <argument>${basedir}/scripts/BuildProjectionDefinitions.java</argument>
|
---|
318 | <argument>${basedir}</argument>
|
---|
319 | </arguments>
|
---|
320 | </configuration>
|
---|
321 | <phase>process-classes</phase>
|
---|
322 | <goals>
|
---|
323 | <goal>exec</goal>
|
---|
324 | </goals>
|
---|
325 | </execution>
|
---|
326 | <execution>
|
---|
327 | <id>epsg</id>
|
---|
328 | <configuration>
|
---|
329 | <executable>java</executable>
|
---|
330 | <arguments>
|
---|
331 | <argument>-Djava.awt.headless=true</argument>
|
---|
332 | <argument>-classpath</argument>
|
---|
333 | <classpath/> <!-- Generates the actual classpath using all project dependencies -->
|
---|
334 | <argument>${basedir}/scripts/BuildProjectionDefinitions.java</argument>
|
---|
335 | <argument>${basedir}</argument>
|
---|
336 | </arguments>
|
---|
337 | </configuration>
|
---|
338 | <phase>generate-test-resources</phase>
|
---|
339 | <goals>
|
---|
340 | <goal>exec</goal>
|
---|
341 | </goals>
|
---|
342 | </execution>
|
---|
343 | </executions>
|
---|
344 | </plugin>
|
---|
345 | <plugin>
|
---|
346 | <!-- This *must* be after the exec-maven-plugin since the epsg execution must occur first -->
|
---|
347 | <artifactId>maven-resources-plugin</artifactId>
|
---|
348 | <executions>
|
---|
349 | <!-- Note that the copy-resources-{epsg-touch,epsg} executions are NOT duplicates - the first epsg makes an
|
---|
350 | empty file for the next run, which makes a non-empty custom-epsg file -->
|
---|
351 | <execution>
|
---|
352 | <id>copy-resources-epsg-touch</id>
|
---|
353 | <phase>process-classes</phase>
|
---|
354 | <goals>
|
---|
355 | <goal>copy-resources</goal>
|
---|
356 | </goals>
|
---|
357 | <configuration>
|
---|
358 | <outputDirectory>${project.build.outputDirectory}/data/projection</outputDirectory>
|
---|
359 | <resources>
|
---|
360 | <resource>
|
---|
361 | <directory>${resources.dir}/data/projection/</directory>
|
---|
362 | <includes>
|
---|
363 | <include>custom-epsg</include>
|
---|
364 | </includes>
|
---|
365 | </resource>
|
---|
366 | </resources>
|
---|
367 | </configuration>
|
---|
368 | </execution>
|
---|
369 | <execution>
|
---|
370 | <id>copy-resources-epsg</id>
|
---|
371 | <phase>generate-test-resources</phase>
|
---|
372 | <goals>
|
---|
373 | <goal>copy-resources</goal>
|
---|
374 | </goals>
|
---|
375 | <configuration>
|
---|
376 | <outputDirectory>${project.build.outputDirectory}/data/projection</outputDirectory>
|
---|
377 | <resources>
|
---|
378 | <resource>
|
---|
379 | <directory>${resources.dir}/data/projection/</directory>
|
---|
380 | <includes>
|
---|
381 | <include>custom-epsg</include>
|
---|
382 | </includes>
|
---|
383 | </resource>
|
---|
384 | </resources>
|
---|
385 | </configuration>
|
---|
386 | </execution>
|
---|
387 | </executions>
|
---|
388 | </plugin>
|
---|
389 | <!-- Configure checkstyle/pmd/other lint plugins -->
|
---|
390 | <plugin>
|
---|
391 | <groupId>org.apache.maven.plugins</groupId>
|
---|
392 | <artifactId>maven-pmd-plugin</artifactId>
|
---|
393 | <configuration>
|
---|
394 | <analysisCache>true</analysisCache>
|
---|
395 | <analysisCacheLocation>${pmd.dir}/cache</analysisCacheLocation>
|
---|
396 | <language>java</language>
|
---|
397 | <targetJdk>${java.lang.version}</targetJdk>
|
---|
398 | <rulesets>
|
---|
399 | <ruleset>${pmd.dir}/josm-ruleset.xml</ruleset>
|
---|
400 | </rulesets>
|
---|
401 | <includes>
|
---|
402 | <include>**/*.java</include>
|
---|
403 | </includes>
|
---|
404 | <excludes>
|
---|
405 | <exclude>org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java</exclude>
|
---|
406 | </excludes>
|
---|
407 | <printFailingErrors>true</printFailingErrors>
|
---|
408 | <targetDirectory>${project.basedir}</targetDirectory>
|
---|
409 | </configuration>
|
---|
410 | </plugin>
|
---|
411 | <plugin>
|
---|
412 | <groupId>com.github.spotbugs</groupId>
|
---|
413 | <artifactId>spotbugs-maven-plugin</artifactId>
|
---|
414 | <configuration>
|
---|
415 | <xmlOutput>true</xmlOutput>
|
---|
416 | <spotbugsXmlOutputFilename>spotbugs-josm.xml</spotbugsXmlOutputFilename>
|
---|
417 | <effort>max</effort>
|
---|
418 | <excludeFilterFile>${spotbugs.dir}/josm-filter.xml</excludeFilterFile>
|
---|
419 | <onlyAnalyze>org.openstreetmap.josm.-</onlyAnalyze>
|
---|
420 | <threshold>LOW</threshold>
|
---|
421 | </configuration>
|
---|
422 | <!-- This is commented out until all the current bugs are fixed. TODO uncomment!
|
---|
423 | <executions>
|
---|
424 | <execution>
|
---|
425 | <id>validate</id>
|
---|
426 | <phase>validate</phase>
|
---|
427 | <goals>
|
---|
428 | <goal>check</goal>
|
---|
429 | </goals>
|
---|
430 | </execution>
|
---|
431 | </executions>
|
---|
432 | -->
|
---|
433 | </plugin>
|
---|
434 | <plugin>
|
---|
435 | <groupId>org.apache.maven.plugins</groupId>
|
---|
436 | <artifactId>maven-checkstyle-plugin</artifactId>
|
---|
437 | <configuration>
|
---|
438 | <configLocation>${checkstyle.dir}/josm_checks.xml</configLocation>
|
---|
439 | <includeTestSourceDirectory>true</includeTestSourceDirectory>
|
---|
440 | <outputFile>${project.basedir}/checkstyle-josm.xml</outputFile>
|
---|
441 | <!-- checkstyle cannot parse module-info.java yet -->
|
---|
442 | <excludes>module-info.java,org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java</excludes>
|
---|
443 | </configuration>
|
---|
444 | <executions>
|
---|
445 | <execution>
|
---|
446 | <id>validate</id>
|
---|
447 | <phase>validate</phase>
|
---|
448 | <goals>
|
---|
449 | <goal>check</goal>
|
---|
450 | </goals>
|
---|
451 | </execution>
|
---|
452 | </executions>
|
---|
453 | </plugin>
|
---|
454 | <!-- Configure the test plugin, specifically enable autodetection of global extensions -->
|
---|
455 | <plugin>
|
---|
456 | <artifactId>maven-surefire-plugin</artifactId>
|
---|
457 | <configuration>
|
---|
458 | <excludes>
|
---|
459 | <exclude>**/*TestIT</exclude>
|
---|
460 | </excludes>
|
---|
461 | <skipAfterFailureCount>1</skipAfterFailureCount>
|
---|
462 | <!-- We might need @{argLine} in the future if another plugin has issues -->
|
---|
463 | <argLine>
|
---|
464 | -javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
|
---|
465 | --add-opens java.base/java.io=ALL-UNNAMED
|
---|
466 | --add-opens java.base/java.lang=ALL-UNNAMED
|
---|
467 | --add-opens java.base/java.nio=ALL-UNNAMED
|
---|
468 | --add-opens java.base/java.text=ALL-UNNAMED
|
---|
469 | --add-opens java.base/java.util=ALL-UNNAMED
|
---|
470 | --add-opens java.base/jdk.internal.loader=ALL-UNNAMED
|
---|
471 | --add-opens java.desktop/java.awt=ALL-UNNAMED
|
---|
472 | --add-opens java.prefs/java.util.prefs=ALL-UNNAMED
|
---|
473 | </argLine>
|
---|
474 | <properties>
|
---|
475 | <configurationParameters>
|
---|
476 | file.encoding = UTF-8
|
---|
477 | java.locale.providers = SPI,CLDR
|
---|
478 | junit.jupiter.extensions.autodetection.enabled = true
|
---|
479 | junit.jupiter.execution.parallel.enabled = true
|
---|
480 | </configurationParameters>
|
---|
481 | </properties>
|
---|
482 | <systemPropertyVariables>
|
---|
483 | <josm.home>${test.dir}/config/josm.home</josm.home>
|
---|
484 | <josm.test.data>${test.dir}/data</josm.test.data>
|
---|
485 | <java.awt.headless>${test.headless}</java.awt.headless>
|
---|
486 | <glass.platform>Monocle</glass.platform>
|
---|
487 | <monocle.platform>Headless</monocle.platform>
|
---|
488 | <prism.order>sw</prism.order>
|
---|
489 | </systemPropertyVariables>
|
---|
490 | </configuration>
|
---|
491 | <executions>
|
---|
492 | <execution>
|
---|
493 | <id>default-tests</id>
|
---|
494 | <phase>test</phase>
|
---|
495 | <goals>
|
---|
496 | <goal>test</goal>
|
---|
497 | </goals>
|
---|
498 | </execution>
|
---|
499 | <execution>
|
---|
500 | <id>integration-tests</id>
|
---|
501 | <phase>integration-test</phase>
|
---|
502 | <goals>
|
---|
503 | <goal>test</goal>
|
---|
504 | </goals>
|
---|
505 | <configuration>
|
---|
506 | <includes>**/*TestIT</includes>
|
---|
507 | </configuration>
|
---|
508 | </execution>
|
---|
509 | <execution>
|
---|
510 | <id>functional-tests</id>
|
---|
511 | <phase>integration-test</phase>
|
---|
512 | <goals>
|
---|
513 | <goal>test</goal>
|
---|
514 | </goals>
|
---|
515 | <configuration>
|
---|
516 | <testSourceDirectory>${test.dir}/functional</testSourceDirectory>
|
---|
517 | </configuration>
|
---|
518 | </execution>
|
---|
519 | <execution>
|
---|
520 | <id>performance-tests</id>
|
---|
521 | <phase>integration-test</phase>
|
---|
522 | <goals>
|
---|
523 | <goal>test</goal>
|
---|
524 | </goals>
|
---|
525 | <configuration>
|
---|
526 | <testSourceDirectory>${test.dir}/performance</testSourceDirectory>
|
---|
527 | </configuration>
|
---|
528 | </execution>
|
---|
529 | </executions>
|
---|
530 | </plugin>
|
---|
531 | <!-- the clean plugin is needed since we currently store generated sources in the source directory -->
|
---|
532 | <plugin>
|
---|
533 | <groupId>org.apache.maven.plugins</groupId>
|
---|
534 | <artifactId>maven-clean-plugin</artifactId>
|
---|
535 | <configuration>
|
---|
536 | <filesets>
|
---|
537 | <fileset>
|
---|
538 | <directory>${proj-build.dir}</directory>
|
---|
539 | </fileset>
|
---|
540 | <fileset>
|
---|
541 | <directory>${build.dir}</directory>
|
---|
542 | </fileset>
|
---|
543 | <fileset>
|
---|
544 | <directory>${script-build.dir}</directory>
|
---|
545 | </fileset>
|
---|
546 | <fileset>
|
---|
547 | <directory>${checkstyle-build.dir}</directory>
|
---|
548 | </fileset>
|
---|
549 | <fileset>
|
---|
550 | <directory>${dist.dir}</directory>
|
---|
551 | </fileset>
|
---|
552 | <fileset>
|
---|
553 | <directory>${mapcss.dir}/parsergen</directory>
|
---|
554 | </fileset>
|
---|
555 | <fileset>
|
---|
556 | <directory>${src.dir}/org/w3/_2001/xmlschema</directory>
|
---|
557 | <includes>
|
---|
558 | <include>Adapter1.java</include>
|
---|
559 | </includes>
|
---|
560 | </fileset>
|
---|
561 | <fileset>
|
---|
562 | <directory>${src.dir}/org/openstreetmap/josm/data/imagery/types</directory>
|
---|
563 | </fileset>
|
---|
564 | <!-- ${epsg.output} -->
|
---|
565 | <fileset>
|
---|
566 | <directory>${resources.dir}/data/projection/</directory>
|
---|
567 | <includes>
|
---|
568 | <include>custom-epsg</include>
|
---|
569 | </includes>
|
---|
570 | </fileset>
|
---|
571 | <fileset>
|
---|
572 | <directory>${pmd.dir}</directory>
|
---|
573 | <includes>
|
---|
574 | <include>cache</include>
|
---|
575 | </includes>
|
---|
576 | </fileset>
|
---|
577 | </filesets>
|
---|
578 | </configuration>
|
---|
579 | </plugin>
|
---|
580 | <plugin>
|
---|
581 | <groupId>org.codehaus.mojo</groupId>
|
---|
582 | <artifactId>buildnumber-maven-plugin</artifactId>
|
---|
583 | <executions>
|
---|
584 | <execution>
|
---|
585 | <phase>validate</phase>
|
---|
586 | <goals>
|
---|
587 | <goal>create</goal>
|
---|
588 | </goals>
|
---|
589 | </execution>
|
---|
590 | </executions>
|
---|
591 | <configuration>
|
---|
592 | <doCheck>false</doCheck>
|
---|
593 | </configuration>
|
---|
594 | </plugin>
|
---|
595 | <plugin>
|
---|
596 | <groupId>org.apache.maven.plugins</groupId>
|
---|
597 | <artifactId>maven-shade-plugin</artifactId>
|
---|
598 | <executions>
|
---|
599 | <execution>
|
---|
600 | <phase>package</phase>
|
---|
601 | <goals>
|
---|
602 | <goal>shade</goal>
|
---|
603 | </goals>
|
---|
604 | <configuration>
|
---|
605 | <minimizeJar>true</minimizeJar>
|
---|
606 | <filters>
|
---|
607 | <filter>
|
---|
608 | <artifact>org.webjars.npm:tag2link</artifact>
|
---|
609 | <excludes>
|
---|
610 | <exclude>META-INF/resources/webjars/tag2link/*/LICENSE</exclude>
|
---|
611 | <exclude>META-INF/resources/webjars/tag2link/*/README.md</exclude>
|
---|
612 | <exclude>META-INF/resources/webjars/tag2link/*/build.js</exclude>
|
---|
613 | <exclude>META-INF/resources/webjars/tag2link/*/package.json</exclude>
|
---|
614 | <exclude>META-INF/resources/webjars/tag2link/*/schema.json</exclude>
|
---|
615 | <exclude>META-INF/resources/webjars/tag2link/*/tag2link.sophox.sparql</exclude>
|
---|
616 | <exclude>META-INF/resources/webjars/tag2link/*/tag2link.wikidata.sparql</exclude>
|
---|
617 | </excludes>
|
---|
618 | </filter>
|
---|
619 | <filter>
|
---|
620 | <artifact>org.openstreetmap.jmapviewer:jmapviewer</artifact>
|
---|
621 | <excludes>
|
---|
622 | <exclude>org/openstreetmap/gui/jmapviewer/Demo*</exclude>
|
---|
623 | </excludes>
|
---|
624 | </filter>
|
---|
625 | <filter>
|
---|
626 | <artifact>com.drewnoakes:metadata-extractor</artifact>
|
---|
627 | <excludes>
|
---|
628 | <exclude>com/drew/imaging/FileTypeDetector*</exclude>
|
---|
629 | <exclude>com/drew/imaging/ImageMetadataReader*</exclude>
|
---|
630 | <exclude>com/drew/imaging/avi/**</exclude>
|
---|
631 | <exclude>com/drew/imaging/bmp/**</exclude>
|
---|
632 | <exclude>com/drew/imaging/eps/**</exclude>
|
---|
633 | <exclude>com/drew/imaging/gif/**</exclude>
|
---|
634 | <exclude>com/drew/imaging/heif/**</exclude>
|
---|
635 | <exclude>com/drew/imaging/ico/**</exclude>
|
---|
636 | <exclude>com/drew/imaging/mp3/**</exclude>
|
---|
637 | <exclude>com/drew/imaging/mp4/**</exclude>
|
---|
638 | <exclude>com/drew/imaging/pcx/**</exclude>
|
---|
639 | <exclude>com/drew/imaging/psd/**</exclude>
|
---|
640 | <exclude>com/drew/imaging/quicktime/**</exclude>
|
---|
641 | <exclude>com/drew/imaging/raf/**</exclude>
|
---|
642 | <exclude>com/drew/imaging/riff/**</exclude>
|
---|
643 | <exclude>com/drew/imaging/wav/**</exclude>
|
---|
644 | <exclude>com/drew/imaging/webp/**</exclude>
|
---|
645 | <exclude>com/drew/metadata/avi/**</exclude>
|
---|
646 | <exclude>com/drew/metadata/bmp/**</exclude>
|
---|
647 | <exclude>com/drew/metadata/eps/**</exclude>
|
---|
648 | <exclude>com/drew/metadata/gif/**</exclude>
|
---|
649 | <exclude>com/drew/metadata/heif/**</exclude>
|
---|
650 | <exclude>com/drew/metadata/ico/**</exclude>
|
---|
651 | <exclude>com/drew/metadata/mov/**</exclude>
|
---|
652 | <exclude>com/drew/metadata/mp3/**</exclude>
|
---|
653 | <exclude>com/drew/metadata/mp4/**</exclude>
|
---|
654 | <exclude>com/drew/metadata/pcx/**</exclude>
|
---|
655 | <exclude>com/drew/metadata/wav/**</exclude>
|
---|
656 | <exclude>com/drew/metadata/webp/**</exclude>
|
---|
657 | <exclude>com/drew/tools/**</exclude>
|
---|
658 | </excludes>
|
---|
659 | </filter>
|
---|
660 | <filter>
|
---|
661 | <artifact>com.formdev:svgSalamander</artifact>
|
---|
662 | <excludes>
|
---|
663 | <exclude>com/kitfox/svg/app/ant/**</exclude>
|
---|
664 | <exclude>com/kitfox/svg/app/*Dialog*</exclude>
|
---|
665 | <exclude>com/kitfox/svg/app/*Frame*</exclude>
|
---|
666 | <exclude>com/kitfox/svg/app/*Player*</exclude>
|
---|
667 | <exclude>com/kitfox/svg/app/*Viewer*</exclude>
|
---|
668 | </excludes>
|
---|
669 | </filter>
|
---|
670 | <filter>
|
---|
671 | <artifact>org.apache.commons:commons-compress</artifact>
|
---|
672 | <excludes>
|
---|
673 | <exclude>org/apache/commons/compress/PasswordRequiredException*</exclude>
|
---|
674 | <exclude>org/apache/commons/compress/archivers/**</exclude>
|
---|
675 | <exclude>org/apache/commons/compress/changes/**</exclude>
|
---|
676 | <exclude>org/apache/commons/compress/compressors/bzip2/BZip2Utils*</exclude>
|
---|
677 | <exclude>org/apache/commons/compress/compressors/brotli/**</exclude>
|
---|
678 | <exclude>org/apache/commons/compress/compressors/CompressorStreamFactory*</exclude>
|
---|
679 | <exclude>org/apache/commons/compress/compressors/CompressorStreamProvider*</exclude>
|
---|
680 | <exclude>org/apache/commons/compress/compressors/CompressorException*</exclude>
|
---|
681 | <exclude>org/apache/commons/compress/compressors/FileNameUtil*</exclude>
|
---|
682 | <exclude>org/apache/commons/compress/compressors/deflate/**</exclude>
|
---|
683 | <exclude>org/apache/commons/compress/compressors/gzip/**</exclude>
|
---|
684 | <exclude>org/apache/commons/compress/compressors/lz4/**</exclude>
|
---|
685 | <exclude>org/apache/commons/compress/compressors/lzma/**</exclude>
|
---|
686 | <exclude>org/apache/commons/compress/compressors/lz77support/**</exclude>
|
---|
687 | <exclude>org/apache/commons/compress/compressors/pack200/**</exclude>
|
---|
688 | <exclude>org/apache/commons/compress/compressors/snappy/**</exclude>
|
---|
689 | <exclude>org/apache/commons/compress/compressors/xz/XZUtils*</exclude>
|
---|
690 | <exclude>org/apache/commons/compress/compressors/z/**</exclude>
|
---|
691 | <exclude>org/apache/commons/compress/compressors/zstandard/**</exclude>
|
---|
692 | <exclude>org/apache/commons/compress/java/util/jar/Pack200*</exclude>
|
---|
693 | <exclude>org/apache/commons/compress/harmony/pack200/**</exclude>
|
---|
694 | <exclude>org/apache/commons/compress/harmony/unpack200/**</exclude>
|
---|
695 | <exclude>org/apache/commons/compress/parallel/**</exclude>
|
---|
696 | <exclude>org/apache/commons/compress/utils/ArchiveUtils*</exclude>
|
---|
697 | </excludes>
|
---|
698 | </filter>
|
---|
699 | <filter>
|
---|
700 | <artifact>org.apache.commons:commons-jcs3-core</artifact>
|
---|
701 | <excludes>
|
---|
702 | <exclude>org/apache/commons/jcs3/auxiliary/disk/jdbc/**</exclude>
|
---|
703 | <exclude>org/apache/commons/jcs3/auxiliary/remote/http/client/**</exclude>
|
---|
704 | <exclude>org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet*</exclude>
|
---|
705 | <exclude>org/apache/commons/jcs3/auxiliary/remote/server/RemoteCacheStartupServlet*</exclude>
|
---|
706 | <exclude>org/apache/commons/jcs3/log/Log4j2Factory*</exclude>
|
---|
707 | <exclude>org/apache/commons/jcs3/log/Log4j2LogAdapter*</exclude>
|
---|
708 | <exclude>org/apache/commons/jcs3/utils/servlet/**</exclude>
|
---|
709 | </excludes>
|
---|
710 | </filter>
|
---|
711 | </filters>
|
---|
712 | </configuration>
|
---|
713 | </execution>
|
---|
714 | </executions>
|
---|
715 | </plugin>
|
---|
716 | <plugin>
|
---|
717 | <groupId>org.apache.maven.plugins</groupId>
|
---|
718 | <artifactId>maven-jar-plugin</artifactId>
|
---|
719 | <configuration>
|
---|
720 | <archive>
|
---|
721 | <manifest>
|
---|
722 | <mainClass>org.openstreetmap.josm.gui.MainApplication</mainClass>
|
---|
723 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
---|
724 | <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
---|
725 | </manifest>
|
---|
726 | <manifestEntries>
|
---|
727 | <Main-Version>${buildNumber} SVN</Main-Version>
|
---|
728 | <!-- The default timestamp format is milliseconds since epoch -->
|
---|
729 | <Main-Date>${timestamp}</Main-Date>
|
---|
730 | <Permissions>all-permissions</Permissions>
|
---|
731 | <Codebase>josm.openstreetmap.de</Codebase>
|
---|
732 | <Application-Name>JOSM - Java OpenStreetMap Editor</Application-Name>
|
---|
733 | <Add-Exports>java.base/sun.security.action java.desktop/com.apple.eawt java.desktop/com.sun.imageio.spi java.desktop/com.sun.imageio.plugins.jpeg javafx.graphics/com.sun.javafx.application jdk.deploy/com.sun.deploy.config</Add-Exports>
|
---|
734 | <Add-Opens>java.base/java.lang java.base/java.nio java.base/jdk.internal.loader java.base/jdk.internal.ref java.desktop/javax.imageio.spi java.desktop/javax.swing.text.html java.prefs/java.util.prefs</Add-Opens>
|
---|
735 | <Multi-Release>true</Multi-Release>
|
---|
736 | <Is-Local-Build>true</Is-Local-Build>
|
---|
737 | </manifestEntries>
|
---|
738 | </archive>
|
---|
739 | </configuration>
|
---|
740 | </plugin>
|
---|
741 | </plugins>
|
---|
742 | </build>
|
---|
743 | </project>
|
---|