source: josm/trunk/pom.xml@ 19376

Last change on this file since 19376 was 19375, checked in by stoecker, 3 weeks ago

drop commons3 usage in sync script

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