|
11 | 11 | <name>Template project to create MapStore extensions - WAR</name> |
12 | 12 | <url></url> |
13 | 13 |
|
14 | | - <properties> |
15 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
16 | | - <tomcat.version>9.0.90</tomcat.version> |
17 | | - <tomcat.port>8080</tomcat.port> |
18 | | - <mapstore-services.version>1.10-SNAPSHOT</mapstore-services.version> |
19 | | - <geostore-webapp.version>2.3-SNAPSHOT</geostore-webapp.version> |
20 | | - <http_proxy.version>1.6-SNAPSHOT</http_proxy.version> |
21 | | - <print-lib.version>2.3.1</print-lib.version> |
22 | | - <httpclient.version>4.5.13</httpclient.version> |
23 | | - <junit.version>4.13.1</junit.version> |
24 | | - <mockito-core.version>4.0.0</mockito-core.version> |
25 | | - <javax.servlet-api.version>3.0.1</javax.servlet-api.version> |
26 | | - <ehcache-web.version>2.0.4</ehcache-web.version> |
27 | | - <commons-pool.version>1.5.4</commons-pool.version> |
28 | | - <jaxws-api.version>2.3.1</jaxws-api.version> |
29 | | - </properties> |
30 | | - |
31 | 14 | <dependencies> |
32 | | - <!-- MapStore backend --> |
| 15 | + <!-- MapStore services --> |
33 | 16 | <dependency> |
34 | 17 | <groupId>it.geosolutions.mapstore</groupId> |
35 | 18 | <artifactId>mapstore-services</artifactId> |
36 | 19 | <version>${mapstore-services.version}</version> |
37 | 20 | </dependency> |
38 | | - |
| 21 | + <!-- Jackson BOM (for to receive same version of jackson from print-lib)--> |
| 22 | + <dependency> |
| 23 | + <groupId>com.fasterxml.jackson</groupId> |
| 24 | + <artifactId>jackson-bom</artifactId> |
| 25 | + <version>${jackson.version}</version> |
| 26 | + <type>pom</type> |
| 27 | + <scope>import</scope> |
| 28 | + </dependency> |
39 | 29 | <!-- ================================================================ --> |
40 | 30 | <!-- GeoStore modules --> |
41 | 31 | <!-- ================================================================ --> |
|
53 | 43 | <type>war</type> |
54 | 44 | <scope>runtime</scope> |
55 | 45 | </dependency> |
56 | | - |
57 | 46 | <!-- JUnit --> |
58 | 47 | <dependency> |
59 | 48 | <groupId>junit</groupId> |
|
86 | 75 | <artifactId>commons-pool</artifactId> |
87 | 76 | <version>${commons-pool.version}</version> |
88 | 77 | </dependency> |
89 | | - <dependency> |
90 | | - <groupId>javax.xml.ws</groupId> |
91 | | - <artifactId>jaxws-api</artifactId> |
92 | | - <version>${jaxws-api.version}</version> |
93 | | - </dependency> |
94 | 78 | </dependencies> |
95 | | - |
96 | 79 | <build> |
97 | 80 | <finalName>mapstore</finalName> |
98 | 81 | <plugins> |
99 | 82 | <plugin> |
100 | 83 | <artifactId>maven-resources-plugin</artifactId> |
101 | | - <version>2.6</version> |
| 84 | + <version>${maven-resources-plugin.version}</version> |
102 | 85 | <executions> |
103 | 86 | <execution> |
104 | 87 | <id>version</id> |
|
173 | 156 | <goal>copy-resources</goal> |
174 | 157 | </goals> |
175 | 158 | <configuration> |
176 | | - <outputDirectory>${basedir}/target/__PROJECTNAME__</outputDirectory> |
| 159 | + <outputDirectory>${basedir}/target/mapstore</outputDirectory> |
177 | 160 | <encoding>UTF-8</encoding> |
178 | 161 | <resources> |
179 | 162 | <resource> |
|
196 | 179 | <goal>copy-resources</goal> |
197 | 180 | </goals> |
198 | 181 | <configuration> |
199 | | - <outputDirectory>${basedir}/target/__PROJECTNAME__</outputDirectory> |
| 182 | + <outputDirectory>${basedir}/target/mapstore</outputDirectory> |
200 | 183 | <encoding>UTF-8</encoding> |
201 | 184 | <resources> |
202 | 185 | <resource> |
|
258 | 241 | <exclude>node_modules/**/*</exclude> |
259 | 242 | <exclude>MapStore2/*</exclude> |
260 | 243 | <exclude>MapStore2/**/*</exclude> |
261 | | - <exclude>**/libs/Cesium/**/*</exclude> |
262 | 244 | <exclude>**/test-resources/*</exclude> |
263 | 245 | </excludes> |
264 | 246 | </resource> |
|
315 | 297 | </resource> |
316 | 298 | </resources> |
317 | 299 | </configuration> |
| 300 | + </execution> |
| 301 | + <execution> |
| 302 | + <id>printing</id> |
| 303 | + <phase>process-classes</phase> |
| 304 | + <goals> |
| 305 | + <goal>copy-resources</goal> |
| 306 | + </goals> |
| 307 | + <configuration> |
| 308 | + <outputDirectory>${basedir}/target/mapstore/printing</outputDirectory> |
| 309 | + <encoding>UTF-8</encoding> |
| 310 | + <resources> |
| 311 | + <resource> |
| 312 | + <directory>${basedir}/../MapStore2/java/printing/resources/geoserver/print</directory> |
| 313 | + <includes> |
| 314 | + <include>*</include> |
| 315 | + </includes> |
| 316 | + </resource> |
| 317 | + </resources> |
| 318 | + </configuration> |
318 | 319 | </execution> |
319 | 320 | <execution> |
320 | 321 | <id>translations-ms2</id> |
|
342 | 343 | <goal>copy-resources</goal> |
343 | 344 | </goals> |
344 | 345 | <configuration> |
345 | | - <outputDirectory>${basedir}/target/mapstore/MapStore2/web/client</outputDirectory> |
| 346 | + <outputDirectory>${basedir}/target/mapstore/MapStore2/web/client/configs</outputDirectory> |
346 | 347 | <encoding>UTF-8</encoding> |
347 | 348 | <resources> |
348 | 349 | <resource> |
349 | | - <directory>${basedir}/../MapStore2/web/client</directory> |
| 350 | + <directory>${basedir}/../MapStore2/web/client/configs</directory> |
350 | 351 | <includes> |
351 | 352 | <include>localConfig.json</include> |
352 | 353 | </includes> |
|
360 | 361 | <plugin> |
361 | 362 | <groupId>org.apache.maven.plugins</groupId> |
362 | 363 | <artifactId>maven-war-plugin</artifactId> |
363 | | - <version>3.4.0</version> |
| 364 | + <version>${maven-war-plugin.version}</version> |
364 | 365 | <configuration> |
365 | | - <packagingExcludes>WEB-INF/lib/commons-codec-1.2.jar, |
366 | | - WEB-INF/lib/commons-io-1.1.jar, |
367 | | - WEB-INF/lib/commons-logging-1.0.4.jar, |
368 | | - WEB-INF/lib/commons-pool-1.3.jar, |
369 | | - WEB-INF/lib/slf4j-api-1.5*.jar, |
370 | | - WEB-INF/lib/slf4j-log4j12-1.5*.jar, |
371 | | - WEB-INF/lib/spring-tx-5.2.15*.jar |
| 366 | + <packagingExcludes> |
| 367 | + WEB-INF/lib/*spring*5.3.18*.jar, |
| 368 | + WEB-INF/lib/json-lib-2.4-jdk15.jar, |
| 369 | + WEB-INF/lib/msg-simple-1.1.jar, |
| 370 | + WEB-INF/lib/btf-1.2.jar, |
| 371 | + WEB-INF/lib/commons-io-2.1.jar, |
| 372 | + WEB-INF/lib/commons-beanutils-1.8.0.jar, |
| 373 | + WEB-INF/lib/commons-logging-1.1.1.jar, |
| 374 | + WEB-INF/lib/jackson-coreutils-1.6.jar, |
| 375 | + WEB-INF/lib/stax-ex-1.8.jar |
372 | 376 | </packagingExcludes> |
373 | 377 | <overlays> |
374 | 378 | <overlay> |
|
386 | 390 | <plugin> |
387 | 391 | <groupId>org.codehaus.cargo</groupId> |
388 | 392 | <artifactId>cargo-maven3-plugin</artifactId> |
| 393 | + <version>${cargo.version}</version> |
389 | 394 | <configuration> |
390 | 395 | <container> |
391 | 396 | <containerId>tomcat9x</containerId> |
392 | 397 | <zipUrlInstaller> |
393 | 398 | <url> |
394 | | - https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/${tomcat.version}/tomcat-${tomcat.version}.zip |
| 399 | + https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/${tomcat.version}/tomcat-${tomcat.version}.zip |
395 | 400 | </url> |
396 | 401 | </zipUrlInstaller> |
397 | 402 | </container> |
|
401 | 406 | ${project.build.directory}/apache-tomcat-${tomcat.version} |
402 | 407 | </home> |
403 | 408 | <properties> |
| 409 | + <cargo.jvmargs> |
| 410 | + --add-opens=java.base/java.lang=ALL-UNNAMED |
| 411 | + --add-opens=java.base/java.io=ALL-UNNAMED |
| 412 | + </cargo.jvmargs> |
404 | 413 | <cargo.servlet.port>${tomcat.port}</cargo.servlet.port> |
405 | 414 | <cargo.logging>low</cargo.logging> |
406 | 415 | </properties> |
|
437 | 446 | <activation> |
438 | 447 | <activeByDefault>false</activeByDefault> |
439 | 448 | </activation> |
| 449 | + <build> |
| 450 | + <plugins> |
| 451 | + <plugin> |
| 452 | + <groupId>com.coderplus.maven.plugins</groupId> |
| 453 | + <artifactId>copy-rename-maven-plugin</artifactId> |
| 454 | + <version>1.0</version> |
| 455 | + <executions> |
| 456 | + <execution> |
| 457 | + <id>rename-context</id> |
| 458 | + <phase>prepare-package</phase> |
| 459 | + <goals> |
| 460 | + <goal>copy</goal> |
| 461 | + </goals> |
| 462 | + <configuration> |
| 463 | + <overWrite>true</overWrite> |
| 464 | + <sourceFile>src/printing/applicationContext-print.xml</sourceFile> |
| 465 | + <destinationFile>target/mapstore/WEB-INF/classes/applicationContext-print.xml</destinationFile> |
| 466 | + </configuration> |
| 467 | + </execution> |
| 468 | + </executions> |
| 469 | + </plugin> |
| 470 | + </plugins> |
| 471 | + </build> |
440 | 472 | <dependencyManagement> |
441 | 473 | <dependencies> |
442 | 474 | <dependency> |
443 | 475 | <groupId>org.apache.httpcomponents</groupId> |
444 | 476 | <artifactId>httpclient</artifactId> |
445 | 477 | <version>${httpclient.version}</version> |
446 | 478 | </dependency> |
| 479 | + <!-- JUnit --> |
| 480 | + <dependency> |
| 481 | + <groupId>junit</groupId> |
| 482 | + <artifactId>junit</artifactId> |
| 483 | + <scope>test</scope> |
| 484 | + <version>${junit.version}</version> |
| 485 | + </dependency> |
| 486 | + <!-- mockito --> |
| 487 | + <dependency> |
| 488 | + <groupId>org.mockito</groupId> |
| 489 | + <artifactId>mockito-core</artifactId> |
| 490 | + <version>${mockito-core.version}</version> |
| 491 | + </dependency> |
| 492 | + <!-- servlet --> |
| 493 | + <dependency> |
| 494 | + <groupId>javax.servlet</groupId> |
| 495 | + <artifactId>javax.servlet-api</artifactId> |
| 496 | + <version>${javax.servlet-api.version}</version> |
| 497 | + </dependency> |
| 498 | + <!-- gzip compression filter --> |
| 499 | + <dependency> |
| 500 | + <groupId>net.sf.ehcache</groupId> |
| 501 | + <artifactId>ehcache-web</artifactId> |
| 502 | + <version>${ehcache-web.version}</version> |
| 503 | + </dependency> |
| 504 | + <!-- misc --> |
| 505 | + <dependency> |
| 506 | + <groupId>commons-pool</groupId> |
| 507 | + <artifactId>commons-pool</artifactId> |
| 508 | + <version>${commons-pool.version}</version> |
| 509 | + </dependency> |
| 510 | + <dependency> |
| 511 | + <groupId>javax.xml.ws</groupId> |
| 512 | + <artifactId>jaxws-api</artifactId> |
| 513 | + <version>${jaxws-api.version}</version> |
| 514 | + </dependency> |
447 | 515 | </dependencies> |
448 | 516 | </dependencyManagement> |
449 | 517 | <dependencies> |
|
477 | 545 | <groupId>org.springframework</groupId> |
478 | 546 | <artifactId>spring-context</artifactId> |
479 | 547 | </exclusion> |
| 548 | + <!-- drop the HTTP Client and Core jar --> |
| 549 | + <exclusion> |
| 550 | + <groupId>org.apache.httpcomponents</groupId> |
| 551 | + <artifactId>httpclient</artifactId> |
| 552 | + </exclusion> |
| 553 | + <exclusion> |
| 554 | + <groupId>org.apache.httpcomponents</groupId> |
| 555 | + <artifactId>httpcore</artifactId> |
| 556 | + </exclusion> |
480 | 557 | </exclusions> |
481 | 558 | </dependency> |
482 | 559 | </dependencies> |
|
494 | 571 | </snapshots> |
495 | 572 | </repository> |
496 | 573 |
|
497 | | - <!-- Spring --> |
498 | 574 | <repository> |
499 | | - <id>spring-release</id> |
500 | | - <name>Spring Portfolio Release Repository</name> |
501 | | - <url>https://maven.springframework.org/release</url> |
502 | | - <snapshots> |
503 | | - <enabled>false</enabled> |
504 | | - </snapshots> |
505 | | - </repository> |
506 | | - <repository> |
507 | | - <id>spring-external</id> |
508 | | - <name>Spring Portfolio External Repository</name> |
509 | | - <url>https://maven.springframework.org/external</url> |
| 575 | + <id>osgeo</id> |
| 576 | + <name>Open Source Geospatial Foundation Repository</name> |
| 577 | + <url>https://repo.osgeo.org/repository/release/</url> |
510 | 578 | <snapshots> |
511 | | - <enabled>false</enabled> |
| 579 | + <enabled>true</enabled> |
512 | 580 | </snapshots> |
513 | 581 | </repository> |
514 | | - |
| 582 | + <!-- OSGEO snapshot (mapfish-print)--> |
515 | 583 | <repository> |
516 | | - <id>osgeo</id> |
| 584 | + <id>osgeo-snapshot</id> |
517 | 585 | <name>Open Source Geospatial Foundation Repository</name> |
518 | | - <url>https://repo.osgeo.org/repository/release/</url> |
| 586 | + <url>https://repo.osgeo.org/repository/snapshot/</url> |
519 | 587 | <snapshots> |
520 | 588 | <enabled>true</enabled> |
521 | 589 | </snapshots> |
|
0 commit comments