| 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 |
|
| 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>[email protected]</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.github.weisj</groupId> |
| 127 |
<artifactId>jsvg</artifactId> |
| 128 |
<version>2.1.0</version> |
| 129 |
<scope>compile</scope> |
| 130 |
</dependency> |
| 131 |
<dependency> |
| 132 |
<groupId>org.jetbrains</groupId> |
| 133 |
<artifactId>annotations</artifactId> |
| 134 |
<version>24.1.0</version> |
| 135 |
<scope>provided</scope> |
| 136 |
</dependency> |
| 137 |
<dependency> |
| 138 |
<groupId>ch.poole</groupId> |
| 139 |
<artifactId>OpeningHoursParser</artifactId> |
| 140 |
<scope>compile</scope> |
| 141 |
</dependency> |
| 142 |
|
| 143 |
<dependency> |
| 144 |
<groupId>org.webjars.npm</groupId> |
| 145 |
<artifactId>tag2link</artifactId> |
| 146 |
<scope>compile</scope> |
| 147 |
</dependency> |
| 148 |
<dependency> |
| 149 |
<groupId>org.jacoco</groupId> |
| 150 |
<artifactId>org.jacoco.ant</artifactId> |
| 151 |
</dependency> |
| 152 |
<dependency> |
| 153 |
<groupId>com.github.spotbugs</groupId> |
| 154 |
<artifactId>spotbugs-annotations</artifactId> |
| 155 |
</dependency> |
| 156 |
<dependency> |
| 157 |
<groupId>com.ginsberg</groupId> |
| 158 |
<artifactId>junit5-system-exit</artifactId> |
| 159 |
</dependency> |
| 160 |
<dependency> |
| 161 |
<groupId>org.wiremock</groupId> |
| 162 |
<artifactId>wiremock</artifactId> |
| 163 |
</dependency> |
| 164 |
<dependency> |
| 165 |
<groupId>io.github.classgraph</groupId> |
| 166 |
<artifactId>classgraph</artifactId> |
| 167 |
</dependency> |
| 168 |
<dependency> |
| 169 |
<groupId>org.junit.platform</groupId> |
| 170 |
<artifactId>junit-platform-launcher</artifactId> |
| 171 |
<scope>test</scope> |
| 172 |
</dependency> |
| 173 |
<dependency> |
| 174 |
<groupId>org.junit.platform</groupId> |
| 175 |
<artifactId>junit-platform-suite</artifactId> |
| 176 |
<scope>test</scope> |
| 177 |
</dependency> |
| 178 |
<dependency> |
| 179 |
<groupId>org.junit.vintage</groupId> |
| 180 |
<artifactId>junit-vintage-engine</artifactId> |
| 181 |
<scope>test</scope> |
| 182 |
</dependency> |
| 183 |
<dependency> |
| 184 |
<groupId>org.junit.jupiter</groupId> |
| 185 |
<artifactId>junit-jupiter-params</artifactId> |
| 186 |
<scope>test</scope> |
| 187 |
</dependency> |
| 188 |
<dependency> |
| 189 |
<groupId>org.junit.jupiter</groupId> |
| 190 |
<artifactId>junit-jupiter-api</artifactId> |
| 191 |
<scope>test</scope> |
| 192 |
</dependency> |
| 193 |
<dependency> |
| 194 |
<groupId>org.junit.jupiter</groupId> |
| 195 |
<artifactId>junit-jupiter-engine</artifactId> |
| 196 |
<scope>test</scope> |
| 197 |
</dependency> |
| 198 |
<dependency> |
| 199 |
<groupId>org.junit.jupiter</groupId> |
| 200 |
<artifactId>junit-jupiter-migrationsupport</artifactId> |
| 201 |
<scope>test</scope> |
| 202 |
</dependency> |
| 203 |
<dependency> |
| 204 |
<groupId>net.trajano.commons</groupId> |
| 205 |
<artifactId>commons-testing</artifactId> |
| 206 |
</dependency> |
| 207 |
<dependency> |
| 208 |
<groupId>nl.jqno.equalsverifier</groupId> |
| 209 |
<artifactId>equalsverifier</artifactId> |
| 210 |
</dependency> |
| 211 |
<dependency> |
| 212 |
<groupId>org.apache.commons</groupId> |
| 213 |
<artifactId>commons-lang3</artifactId> |
| 214 |
<scope>test</scope> |
| 215 |
</dependency> |
| 216 |
<dependency> |
| 217 |
<groupId>org.awaitility</groupId> |
| 218 |
<artifactId>awaitility</artifactId> |
| 219 |
</dependency> |
| 220 |
</dependencies> |
| 221 |
<build> |
| 222 |
<sourceDirectory>${src.dir}</sourceDirectory> |
| 223 |
<testSourceDirectory>${test.dir}/unit</testSourceDirectory> |
| 224 |
<scriptSourceDirectory>${scripts.src.dir}</scriptSourceDirectory> |
| 225 |
<resources> |
| 226 |
<resource> |
| 227 |
<directory>${resources.dir}</directory> |
| 228 |
</resource> |
| 229 |
<resource> |
| 230 |
<directory>${project.basedir}</directory> |
| 231 |
<includes> |
| 232 |
<include>CONTRIBUTION</include> |
| 233 |
<include>gpl-2.0.txt</include> |
| 234 |
<include>gpl-3.0.txt</include> |
| 235 |
<include>LICENSE</include> |
| 236 |
<include>README</include> |
| 237 |
<include>REVISION</include> |
| 238 |
</includes> |
| 239 |
</resource> |
| 240 |
</resources> |
| 241 |
<testResources> |
| 242 |
<testResource> |
| 243 |
<directory>${test.dir}/data</directory> |
| 244 |
</testResource> |
| 245 |
</testResources> |
| 246 |
<pluginManagement> |
| 247 |
<plugins> |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
<plugin> |
| 253 |
<groupId>org.eclipse.m2e</groupId> |
| 254 |
<artifactId>lifecycle-mapping</artifactId> |
| 255 |
<version>1.0.0</version> |
| 256 |
<configuration> |
| 257 |
<lifecycleMappingMetadata> |
| 258 |
<pluginExecutions> |
| 259 |
<pluginExecution> |
| 260 |
<pluginExecutionFilter> |
| 261 |
<groupId>org.apache.maven.plugins</groupId> |
| 262 |
<artifactId>maven-checkstyle-plugin</artifactId> |
| 263 |
<versionRange>[0,)</versionRange> |
| 264 |
<goals> |
| 265 |
<goal>check</goal> |
| 266 |
</goals> |
| 267 |
</pluginExecutionFilter> |
| 268 |
<action> |
| 269 |
<ignore/> |
| 270 |
</action> |
| 271 |
</pluginExecution> |
| 272 |
</pluginExecutions> |
| 273 |
</lifecycleMappingMetadata> |
| 274 |
</configuration> |
| 275 |
</plugin> |
| 276 |
</plugins> |
| 277 |
</pluginManagement> |
| 278 |
<plugins> |
| 279 |
|
| 280 |
<plugin> |
| 281 |
<groupId>org.codehaus.mojo</groupId> |
| 282 |
<artifactId>javacc-maven-plugin</artifactId> |
| 283 |
<executions> |
| 284 |
<execution> |
| 285 |
<id>javacc</id> |
| 286 |
<goals> |
| 287 |
<goal>javacc</goal> |
| 288 |
</goals> |
| 289 |
<configuration> |
| 290 |
<debugParser>false</debugParser> |
| 291 |
<debugTokenManager>false</debugTokenManager> |
| 292 |
<jdkVersion>${java.lang.version}</jdkVersion> |
| 293 |
<grammarEncoding>UTF-8</grammarEncoding> |
| 294 |
<unicodeInput>true</unicodeInput> |
| 295 |
<sourceDirectory>${src.dir}</sourceDirectory> |
| 296 |
<outputDirectory>${src.dir}</outputDirectory> |
| 297 |
<includes><include>**/MapCSSParser.jj</include></includes> |
| 298 |
<excludes><exclude>**/*.java</exclude></excludes> |
| 299 |
</configuration> |
| 300 |
</execution> |
| 301 |
</executions> |
| 302 |
</plugin> |
| 303 |
|
| 304 |
<plugin> |
| 305 |
<groupId>org.codehaus.mojo</groupId> |
| 306 |
<artifactId>exec-maven-plugin</artifactId> |
| 307 |
<executions> |
| 308 |
|
| 309 |
<execution> |
| 310 |
<id>update-proj-reference-files</id> |
| 311 |
<configuration> |
| 312 |
<classpathScope>test</classpathScope> |
| 313 |
<mainClass>org.openstreetmap.josm.data.projection.ProjectionRefTest</mainClass> |
| 314 |
</configuration> |
| 315 |
<goals> |
| 316 |
<goal>java</goal> |
| 317 |
</goals> |
| 318 |
</execution> |
| 319 |
|
| 320 |
<execution> |
| 321 |
<id>update-proj-regression-files</id> |
| 322 |
<configuration> |
| 323 |
<classpathScope>test</classpathScope> |
| 324 |
<mainClass>org.openstreetmap.josm.data.projection.ProjectionRegressionTest</mainClass> |
| 325 |
</configuration> |
| 326 |
<goals> |
| 327 |
<goal>java</goal> |
| 328 |
</goals> |
| 329 |
</execution> |
| 330 |
|
| 331 |
<execution> |
| 332 |
<id>SyncEditorLayerIndex</id> |
| 333 |
<configuration> |
| 334 |
<executable>java</executable> |
| 335 |
<arguments> |
| 336 |
<argument>-Djava.awt.headless=true</argument> |
| 337 |
<argument>-classpath</argument> |
| 338 |
<classpath/> |
| 339 |
<argument>${scripts.src.dir}/SyncEditorLayerIndex.java</argument> |
| 340 |
<argument>${basedir}</argument> |
| 341 |
</arguments> |
| 342 |
</configuration> |
| 343 |
<goals> |
| 344 |
<goal>exec</goal> |
| 345 |
</goals> |
| 346 |
</execution> |
| 347 |
|
| 348 |
|
| 349 |
<execution> |
| 350 |
<id>epsg-touch</id> |
| 351 |
<configuration> |
| 352 |
<executable>java</executable> |
| 353 |
<arguments> |
| 354 |
<argument>-Djava.awt.headless=true</argument> |
| 355 |
<argument>-classpath</argument> |
| 356 |
<classpath/> |
| 357 |
<argument>${basedir}/scripts/BuildProjectionDefinitions.java</argument> |
| 358 |
<argument>${basedir}</argument> |
| 359 |
</arguments> |
| 360 |
</configuration> |
| 361 |
<phase>process-classes</phase> |
| 362 |
<goals> |
| 363 |
<goal>exec</goal> |
| 364 |
</goals> |
| 365 |
</execution> |
| 366 |
<execution> |
| 367 |
<id>epsg</id> |
| 368 |
<configuration> |
| 369 |
<executable>java</executable> |
| 370 |
<arguments> |
| 371 |
<argument>-Djava.awt.headless=true</argument> |
| 372 |
<argument>-classpath</argument> |
| 373 |
<classpath/> |
| 374 |
<argument>${basedir}/scripts/BuildProjectionDefinitions.java</argument> |
| 375 |
<argument>${basedir}</argument> |
| 376 |
</arguments> |
| 377 |
</configuration> |
| 378 |
<phase>generate-test-resources</phase> |
| 379 |
<goals> |
| 380 |
<goal>exec</goal> |
| 381 |
</goals> |
| 382 |
</execution> |
| 383 |
</executions> |
| 384 |
</plugin> |
| 385 |
<plugin> |
| 386 |
|
| 387 |
<artifactId>maven-resources-plugin</artifactId> |
| 388 |
<executions> |
| 389 |
|
| 390 |
|
| 391 |
<execution> |
| 392 |
<id>copy-resources-epsg-touch</id> |
| 393 |
<phase>process-classes</phase> |
| 394 |
<goals> |
| 395 |
<goal>copy-resources</goal> |
| 396 |
</goals> |
| 397 |
<configuration> |
| 398 |
<outputDirectory>${project.build.outputDirectory}/data/projection</outputDirectory> |
| 399 |
<resources> |
| 400 |
<resource> |
| 401 |
<directory>${resources.dir}/data/projection/</directory> |
| 402 |
<includes> |
| 403 |
<include>custom-epsg</include> |
| 404 |
</includes> |
| 405 |
</resource> |
| 406 |
</resources> |
| 407 |
</configuration> |
| 408 |
</execution> |
| 409 |
<execution> |
| 410 |
<id>copy-resources-epsg</id> |
| 411 |
<phase>generate-test-resources</phase> |
| 412 |
<goals> |
| 413 |
<goal>copy-resources</goal> |
| 414 |
</goals> |
| 415 |
<configuration> |
| 416 |
<outputDirectory>${project.build.outputDirectory}/data/projection</outputDirectory> |
| 417 |
<resources> |
| 418 |
<resource> |
| 419 |
<directory>${resources.dir}/data/projection/</directory> |
| 420 |
<includes> |
| 421 |
<include>custom-epsg</include> |
| 422 |
</includes> |
| 423 |
</resource> |
| 424 |
</resources> |
| 425 |
</configuration> |
| 426 |
</execution> |
| 427 |
</executions> |
| 428 |
</plugin> |
| 429 |
|
| 430 |
<plugin> |
| 431 |
<groupId>org.apache.maven.plugins</groupId> |
| 432 |
<artifactId>maven-pmd-plugin</artifactId> |
| 433 |
<configuration> |
| 434 |
<analysisCache>true</analysisCache> |
| 435 |
<analysisCacheLocation>${pmd.dir}/cache</analysisCacheLocation> |
| 436 |
<language>java</language> |
| 437 |
<targetJdk>${java.lang.version}</targetJdk> |
| 438 |
<rulesets> |
| 439 |
<ruleset>${pmd.dir}/josm-ruleset.xml</ruleset> |
| 440 |
</rulesets> |
| 441 |
<includes> |
| 442 |
<include>**/*.java</include> |
| 443 |
</includes> |
| 444 |
<excludes> |
| 445 |
<exclude>org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java</exclude> |
| 446 |
</excludes> |
| 447 |
<printFailingErrors>true</printFailingErrors> |
| 448 |
<targetDirectory>${project.basedir}</targetDirectory> |
| 449 |
</configuration> |
| 450 |
</plugin> |
| 451 |
<plugin> |
| 452 |
<groupId>com.github.spotbugs</groupId> |
| 453 |
<artifactId>spotbugs-maven-plugin</artifactId> |
| 454 |
<configuration> |
| 455 |
<xmlOutput>true</xmlOutput> |
| 456 |
<spotbugsXmlOutputFilename>spotbugs-josm.xml</spotbugsXmlOutputFilename> |
| 457 |
<effort>max</effort> |
| 458 |
<excludeFilterFile>${spotbugs.dir}/josm-filter.xml</excludeFilterFile> |
| 459 |
<onlyAnalyze>org.openstreetmap.josm.-</onlyAnalyze> |
| 460 |
<threshold>LOW</threshold> |
| 461 |
</configuration> |
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
</plugin> |
| 474 |
<plugin> |
| 475 |
<groupId>org.apache.maven.plugins</groupId> |
| 476 |
<artifactId>maven-checkstyle-plugin</artifactId> |
| 477 |
<configuration> |
| 478 |
<configLocation>${checkstyle.dir}/josm_checks.xml</configLocation> |
| 479 |
<includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 480 |
<outputFile>${project.basedir}/checkstyle-josm.xml</outputFile> |
| 481 |
|
| 482 |
<excludes>module-info.java,org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java</excludes> |
| 483 |
</configuration> |
| 484 |
<executions> |
| 485 |
<execution> |
| 486 |
<id>validate</id> |
| 487 |
<phase>validate</phase> |
| 488 |
<goals> |
| 489 |
<goal>check</goal> |
| 490 |
</goals> |
| 491 |
</execution> |
| 492 |
</executions> |
| 493 |
</plugin> |
| 494 |
|
| 495 |
<plugin> |
| 496 |
<artifactId>maven-surefire-plugin</artifactId> |
| 497 |
<configuration> |
| 498 |
<excludes> |
| 499 |
<exclude>**/*TestIT</exclude> |
| 500 |
</excludes> |
| 501 |
<skipAfterFailureCount>1</skipAfterFailureCount> |
| 502 |
<useModulePath>false</useModulePath> |
| 503 |
|
| 504 |
<argLine> |
| 505 |
@{argLine} |
| 506 |
|
| 507 |
|
| 508 |
-Djava.locale.providers=SPI,CLDR |
| 509 |
-javaagent:${org.jmockit:jmockit:jar} |
| 510 |
--add-opens java.base/java.io=ALL-UNNAMED |
| 511 |
--add-opens java.base/java.lang=ALL-UNNAMED |
| 512 |
--add-opens java.base/java.nio=ALL-UNNAMED |
| 513 |
--add-opens java.base/java.text=ALL-UNNAMED |
| 514 |
--add-opens java.base/java.util=ALL-UNNAMED |
| 515 |
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED |
| 516 |
--add-opens java.desktop/java.awt=ALL-UNNAMED |
| 517 |
--add-opens java.prefs/java.util.prefs=ALL-UNNAMED |
| 518 |
</argLine> |
| 519 |
<properties> |
| 520 |
<configurationParameters> |
| 521 |
file.encoding = UTF-8 |
| 522 |
junit.jupiter.extensions.autodetection.enabled = true |
| 523 |
junit.jupiter.execution.parallel.enabled = true |
| 524 |
</configurationParameters> |
| 525 |
</properties> |
| 526 |
<systemPropertyVariables> |
| 527 |
<josm.home>${test.dir}/config/josm.home</josm.home> |
| 528 |
<josm.test.data>${test.dir}/data</josm.test.data> |
| 529 |
<java.awt.headless>${test.headless}</java.awt.headless> |
| 530 |
<glass.platform>Monocle</glass.platform> |
| 531 |
<monocle.platform>Headless</monocle.platform> |
| 532 |
<prism.order>sw</prism.order> |
| 533 |
</systemPropertyVariables> |
| 534 |
</configuration> |
| 535 |
<executions> |
| 536 |
<execution> |
| 537 |
<id>default-tests</id> |
| 538 |
<phase>test</phase> |
| 539 |
<goals> |
| 540 |
<goal>test</goal> |
| 541 |
</goals> |
| 542 |
</execution> |
| 543 |
<execution> |
| 544 |
<id>integration-tests</id> |
| 545 |
<phase>integration-test</phase> |
| 546 |
<goals> |
| 547 |
<goal>test</goal> |
| 548 |
</goals> |
| 549 |
<configuration> |
| 550 |
<includes>**/*TestIT</includes> |
| 551 |
</configuration> |
| 552 |
</execution> |
| 553 |
<execution> |
| 554 |
<id>functional-tests</id> |
| 555 |
<phase>integration-test</phase> |
| 556 |
<goals> |
| 557 |
<goal>test</goal> |
| 558 |
</goals> |
| 559 |
<configuration> |
| 560 |
<testSourceDirectory>${test.dir}/functional</testSourceDirectory> |
| 561 |
</configuration> |
| 562 |
</execution> |
| 563 |
<execution> |
| 564 |
<id>performance-tests</id> |
| 565 |
<phase>integration-test</phase> |
| 566 |
<goals> |
| 567 |
<goal>test</goal> |
| 568 |
</goals> |
| 569 |
<configuration> |
| 570 |
<testSourceDirectory>${test.dir}/performance</testSourceDirectory> |
| 571 |
</configuration> |
| 572 |
</execution> |
| 573 |
</executions> |
| 574 |
</plugin> |
| 575 |
|
| 576 |
<plugin> |
| 577 |
<groupId>org.apache.maven.plugins</groupId> |
| 578 |
<artifactId>maven-clean-plugin</artifactId> |
| 579 |
<configuration> |
| 580 |
<filesets> |
| 581 |
<fileset> |
| 582 |
<directory>${proj-build.dir}</directory> |
| 583 |
</fileset> |
| 584 |
<fileset> |
| 585 |
<directory>${build.dir}</directory> |
| 586 |
</fileset> |
| 587 |
<fileset> |
| 588 |
<directory>${script-build.dir}</directory> |
| 589 |
</fileset> |
| 590 |
<fileset> |
| 591 |
<directory>${checkstyle-build.dir}</directory> |
| 592 |
</fileset> |
| 593 |
<fileset> |
| 594 |
<directory>${dist.dir}</directory> |
| 595 |
</fileset> |
| 596 |
<fileset> |
| 597 |
<directory>${mapcss.dir}/parsergen</directory> |
| 598 |
</fileset> |
| 599 |
<fileset> |
| 600 |
<directory>${src.dir}/org/w3/_2001/xmlschema</directory> |
| 601 |
<includes> |
| 602 |
<include>Adapter1.java</include> |
| 603 |
</includes> |
| 604 |
</fileset> |
| 605 |
<fileset> |
| 606 |
<directory>${src.dir}/org/openstreetmap/josm/data/imagery/types</directory> |
| 607 |
</fileset> |
| 608 |
|
| 609 |
<fileset> |
| 610 |
<directory>${resources.dir}/data/projection/</directory> |
| 611 |
<includes> |
| 612 |
<include>custom-epsg</include> |
| 613 |
</includes> |
| 614 |
</fileset> |
| 615 |
<fileset> |
| 616 |
<directory>${pmd.dir}</directory> |
| 617 |
<includes> |
| 618 |
<include>cache</include> |
| 619 |
</includes> |
| 620 |
</fileset> |
| 621 |
</filesets> |
| 622 |
</configuration> |
| 623 |
</plugin> |
| 624 |
<plugin> |
| 625 |
<groupId>org.codehaus.mojo</groupId> |
| 626 |
<artifactId>buildnumber-maven-plugin</artifactId> |
| 627 |
<executions> |
| 628 |
<execution> |
| 629 |
<phase>validate</phase> |
| 630 |
<goals> |
| 631 |
<goal>create</goal> |
| 632 |
</goals> |
| 633 |
</execution> |
| 634 |
</executions> |
| 635 |
<configuration> |
| 636 |
<doCheck>false</doCheck> |
| 637 |
</configuration> |
| 638 |
</plugin> |
| 639 |
<plugin> |
| 640 |
<groupId>org.apache.maven.plugins</groupId> |
| 641 |
<artifactId>maven-shade-plugin</artifactId> |
| 642 |
<executions> |
| 643 |
<execution> |
| 644 |
<phase>package</phase> |
| 645 |
<goals> |
| 646 |
<goal>shade</goal> |
| 647 |
</goals> |
| 648 |
<configuration> |
| 649 |
<minimizeJar>true</minimizeJar> |
| 650 |
<filters> |
| 651 |
<filter> |
| 652 |
<artifact>org.webjars.npm:tag2link</artifact> |
| 653 |
<excludes> |
| 654 |
<exclude>META-INF/resources/webjars/tag2link/*/LICENSE</exclude> |
| 655 |
<exclude>META-INF/resources/webjars/tag2link/*/README.md</exclude> |
| 656 |
<exclude>META-INF/resources/webjars/tag2link/*/build.js</exclude> |
| 657 |
<exclude>META-INF/resources/webjars/tag2link/*/package.json</exclude> |
| 658 |
<exclude>META-INF/resources/webjars/tag2link/*/schema.json</exclude> |
| 659 |
<exclude>META-INF/resources/webjars/tag2link/*/tag2link.sophox.sparql</exclude> |
| 660 |
<exclude>META-INF/resources/webjars/tag2link/*/tag2link.wikidata.sparql</exclude> |
| 661 |
</excludes> |
| 662 |
</filter> |
| 663 |
<filter> |
| 664 |
<artifact>org.openstreetmap.jmapviewer:jmapviewer</artifact> |
| 665 |
<excludes> |
| 666 |
<exclude>org/openstreetmap/gui/jmapviewer/Demo*</exclude> |
| 667 |
</excludes> |
| 668 |
</filter> |
| 669 |
<filter> |
| 670 |
<artifact>com.drewnoakes:metadata-extractor</artifact> |
| 671 |
<excludes> |
| 672 |
<exclude>com/drew/imaging/FileTypeDetector*</exclude> |
| 673 |
<exclude>com/drew/imaging/ImageMetadataReader*</exclude> |
| 674 |
<exclude>com/drew/imaging/avi/**</exclude> |
| 675 |
<exclude>com/drew/imaging/bmp/**</exclude> |
| 676 |
<exclude>com/drew/imaging/eps/**</exclude> |
| 677 |
<exclude>com/drew/imaging/gif/**</exclude> |
| 678 |
<exclude>com/drew/imaging/heif/**</exclude> |
| 679 |
<exclude>com/drew/imaging/ico/**</exclude> |
| 680 |
<exclude>com/drew/imaging/mp3/**</exclude> |
| 681 |
<exclude>com/drew/imaging/mp4/**</exclude> |
| 682 |
<exclude>com/drew/imaging/pcx/**</exclude> |
| 683 |
<exclude>com/drew/imaging/psd/**</exclude> |
| 684 |
<exclude>com/drew/imaging/quicktime/**</exclude> |
| 685 |
<exclude>com/drew/imaging/raf/**</exclude> |
| 686 |
<exclude>com/drew/imaging/riff/**</exclude> |
| 687 |
<exclude>com/drew/imaging/wav/**</exclude> |
| 688 |
<exclude>com/drew/imaging/webp/**</exclude> |
| 689 |
<exclude>com/drew/metadata/avi/**</exclude> |
| 690 |
<exclude>com/drew/metadata/bmp/**</exclude> |
| 691 |
<exclude>com/drew/metadata/eps/**</exclude> |
| 692 |
<exclude>com/drew/metadata/gif/**</exclude> |
| 693 |
<exclude>com/drew/metadata/heif/**</exclude> |
| 694 |
<exclude>com/drew/metadata/ico/**</exclude> |
| 695 |
<exclude>com/drew/metadata/mov/**</exclude> |
| 696 |
<exclude>com/drew/metadata/mp3/**</exclude> |
| 697 |
<exclude>com/drew/metadata/mp4/**</exclude> |
| 698 |
<exclude>com/drew/metadata/pcx/**</exclude> |
| 699 |
<exclude>com/drew/metadata/wav/**</exclude> |
| 700 |
<exclude>com/drew/metadata/webp/**</exclude> |
| 701 |
<exclude>com/drew/tools/**</exclude> |
| 702 |
</excludes> |
| 703 |
</filter> |
| 704 |
<filter> |
| 705 |
<artifact>org.apache.commons:commons-compress</artifact> |
| 706 |
<excludes> |
| 707 |
<exclude>org/apache/commons/compress/PasswordRequiredException*</exclude> |
| 708 |
<exclude>org/apache/commons/compress/archivers/**</exclude> |
| 709 |
<exclude>org/apache/commons/compress/changes/**</exclude> |
| 710 |
<exclude>org/apache/commons/compress/compressors/bzip2/BZip2Utils*</exclude> |
| 711 |
<exclude>org/apache/commons/compress/compressors/brotli/**</exclude> |
| 712 |
<exclude>org/apache/commons/compress/compressors/CompressorStreamFactory*</exclude> |
| 713 |
<exclude>org/apache/commons/compress/compressors/CompressorStreamProvider*</exclude> |
| 714 |
<exclude>org/apache/commons/compress/compressors/CompressorException*</exclude> |
| 715 |
<exclude>org/apache/commons/compress/compressors/FileNameUtil*</exclude> |
| 716 |
<exclude>org/apache/commons/compress/compressors/deflate/**</exclude> |
| 717 |
<exclude>org/apache/commons/compress/compressors/gzip/**</exclude> |
| 718 |
<exclude>org/apache/commons/compress/compressors/lz4/**</exclude> |
| 719 |
<exclude>org/apache/commons/compress/compressors/lzma/**</exclude> |
| 720 |
<exclude>org/apache/commons/compress/compressors/lz77support/**</exclude> |
| 721 |
<exclude>org/apache/commons/compress/compressors/pack200/**</exclude> |
| 722 |
<exclude>org/apache/commons/compress/compressors/snappy/**</exclude> |
| 723 |
<exclude>org/apache/commons/compress/compressors/xz/XZUtils*</exclude> |
| 724 |
<exclude>org/apache/commons/compress/compressors/z/**</exclude> |
| 725 |
<exclude>org/apache/commons/compress/compressors/zstandard/**</exclude> |
| 726 |
<exclude>org/apache/commons/compress/java/util/jar/Pack200*</exclude> |
| 727 |
<exclude>org/apache/commons/compress/harmony/pack200/**</exclude> |
| 728 |
<exclude>org/apache/commons/compress/harmony/unpack200/**</exclude> |
| 729 |
<exclude>org/apache/commons/compress/parallel/**</exclude> |
| 730 |
<exclude>org/apache/commons/compress/utils/ArchiveUtils*</exclude> |
| 731 |
</excludes> |
| 732 |
</filter> |
| 733 |
<filter> |
| 734 |
<artifact>org.apache.commons:commons-jcs3-core</artifact> |
| 735 |
<excludes> |
| 736 |
<exclude>org/apache/commons/jcs3/auxiliary/disk/jdbc/**</exclude> |
| 737 |
<exclude>org/apache/commons/jcs3/auxiliary/remote/http/client/**</exclude> |
| 738 |
<exclude>org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet*</exclude> |
| 739 |
<exclude>org/apache/commons/jcs3/auxiliary/remote/server/RemoteCacheStartupServlet*</exclude> |
| 740 |
<exclude>org/apache/commons/jcs3/log/Log4j2Factory*</exclude> |
| 741 |
<exclude>org/apache/commons/jcs3/log/Log4j2LogAdapter*</exclude> |
| 742 |
<exclude>org/apache/commons/jcs3/utils/servlet/**</exclude> |
| 743 |
</excludes> |
| 744 |
</filter> |
| 745 |
</filters> |
| 746 |
</configuration> |
| 747 |
</execution> |
| 748 |
</executions> |
| 749 |
</plugin> |
| 750 |
<plugin> |
| 751 |
<groupId>org.apache.maven.plugins</groupId> |
| 752 |
<artifactId>maven-jar-plugin</artifactId> |
| 753 |
<configuration> |
| 754 |
<archive> |
| 755 |
<manifest> |
| 756 |
<mainClass>org.openstreetmap.josm.gui.MainApplication</mainClass> |
| 757 |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 758 |
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| 759 |
</manifest> |
| 760 |
<manifestEntries> |
| 761 |
<Main-Version>${buildNumber} SVN</Main-Version> |
| 762 |
|
| 763 |
<Main-Date>${timestamp}</Main-Date> |
| 764 |
<Permissions>all-permissions</Permissions> |
| 765 |
<Codebase>josm.openstreetmap.de</Codebase> |
| 766 |
<Application-Name>JOSM - Java OpenStreetMap Editor</Application-Name> |
| 767 |
<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> |
| 768 |
<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> |
| 769 |
<Multi-Release>true</Multi-Release> |
| 770 |
<Is-Local-Build>true</Is-Local-Build> |
| 771 |
</manifestEntries> |
| 772 |
</archive> |
| 773 |
</configuration> |
| 774 |
</plugin> |
| 775 |
</plugins> |
| 776 |
</build> |
| 777 |
<profiles> |
| 778 |
<profile> |
| 779 |
<id>java-17</id> |
| 780 |
<activation> |
| 781 |
<jdk>[17</jdk> |
| 782 |
</activation> |
| 783 |
<build> |
| 784 |
<plugins> |
| 785 |
<plugin> |
| 786 |
<artifactId>maven-surefire-plugin</artifactId> |
| 787 |
<configuration> |
| 788 |
|
| 789 |
<argLine> |
| 790 |
@{argLine} |
| 791 |
-Djava.locale.providers=SPI,CLDR |
| 792 |
-javaagent:${com.ginsberg:junit5-system-exit:jar} |
| 793 |
-javaagent:${org.jmockit:jmockit:jar} |
| 794 |
--add-opens java.base/java.io=ALL-UNNAMED |
| 795 |
--add-opens java.base/java.lang=ALL-UNNAMED |
| 796 |
--add-opens java.base/java.nio=ALL-UNNAMED |
| 797 |
--add-opens java.base/java.text=ALL-UNNAMED |
| 798 |
--add-opens java.base/java.util=ALL-UNNAMED |
| 799 |
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED |
| 800 |
--add-opens java.desktop/java.awt=ALL-UNNAMED |
| 801 |
--add-opens java.prefs/java.util.prefs=ALL-UNNAMED |
| 802 |
</argLine> |
| 803 |
</configuration> |
| 804 |
</plugin> |
| 805 |
</plugins> |
| 806 |
</build> |
| 807 |
</profile> |
| 808 |
</profiles> |
| 809 |
</project> |