|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 |
|
4 | | - Copyright (C) 2021 con terra GmbH (info@conterra.de) |
| 4 | + Copyright (C) 2023 con terra GmbH (info@conterra.de) |
5 | 5 |
|
6 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | you may not use this file except in compliance with the License. |
|
92 | 92 | <artifactId>ct-jsregistry-maven-plugin</artifactId> |
93 | 93 | <version>${ct.jsregistry.version}</version> |
94 | 94 | </plugin> |
95 | | - <plugin> |
96 | | - <artifactId>maven-deploy-plugin</artifactId> |
97 | | - <version>2.8.2</version> |
98 | | - </plugin> |
99 | 95 | <plugin> |
100 | 96 | <groupId>org.apache.maven.plugins</groupId> |
101 | 97 | <artifactId>maven-resources-plugin</artifactId> |
|
121 | 117 | <excludes> |
122 | 118 | <exclude>apps/**</exclude> |
123 | 119 | <exclude>**/tests/**</exclude> |
| 120 | + <exclude>**/sample_tests/**</exclude> |
| 121 | + <exclude>**/theme-common/**</exclude> |
124 | 122 | </excludes> |
125 | 123 | </configuration> |
126 | 124 | </plugin> |
|
151 | 149 | <artifactId>build-helper-maven-plugin</artifactId> |
152 | 150 | <version>3.1.0</version> |
153 | 151 | </plugin> |
| 152 | + <plugin> |
| 153 | + <artifactId>maven-release-plugin</artifactId> |
| 154 | + <version>2.5.3</version> |
| 155 | + </plugin> |
154 | 156 | <plugin> |
155 | 157 | <artifactId>maven-assembly-plugin</artifactId> |
156 | 158 | <version>3.0.0</version> |
|
160 | 162 | <artifactId>license-maven-plugin</artifactId> |
161 | 163 | <version>2.11</version> |
162 | 164 | </plugin> |
| 165 | + <plugin> |
| 166 | + <groupId>de.conterra.maven</groupId> |
| 167 | + <artifactId>setproperties-maven-plugin</artifactId> |
| 168 | + <version>1.0.2</version> |
| 169 | + </plugin> |
163 | 170 | </plugins> |
164 | 171 | </pluginManagement> |
165 | 172 | <sourceDirectory>src/main/js</sourceDirectory> |
|
197 | 204 | </execution> |
198 | 205 | </executions> |
199 | 206 | <configuration> |
200 | | - <!-- add here properties which are used in plugin configuration resolution --> |
201 | 207 | <properties> |
202 | | - <!-- deployment of map.apps installation --> |
203 | 208 | <mapapps.remote.base>.</mapapps.remote.base> |
204 | 209 | </properties> |
205 | 210 | </configuration> |
|
236 | 241 | <artifactItems> |
237 | 242 | <artifactItem> |
238 | 243 | <groupId>de.conterra.mapapps</groupId> |
239 | | - <artifactId>ct-mapapps-js-api</artifactId> |
240 | | - <version>${mapapps.version}</version> |
| 244 | + <artifactId>ct-mapapps-js</artifactId> |
241 | 245 | <classifier>src</classifier> |
242 | 246 | <outputDirectory>${project.build.directory}/unpacked</outputDirectory> |
243 | 247 | <includes>layout/theme-everlasting/**,layout/theme-common/**</includes> |
|
303 | 307 | </execution> |
304 | 308 | </executions> |
305 | 309 | </plugin> |
| 310 | + <plugin> |
| 311 | + <groupId>com.mycila</groupId> |
| 312 | + <artifactId>license-maven-plugin</artifactId> |
| 313 | + <configuration> |
| 314 | + <header>${project.baseUri}apache2-license-header.txt</header> |
| 315 | + <properties> |
| 316 | + <owner>con terra GmbH</owner> |
| 317 | + <email>info@conterra.de</email> |
| 318 | + <project.inceptionYear>2023</project.inceptionYear> |
| 319 | + </properties> |
| 320 | + <includes> |
| 321 | + <include>src/main/js/**/*.js</include> |
| 322 | + <include>src/main/js/**/*.ts</include> |
| 323 | + <include>src/main/js/**/*.vue</include> |
| 324 | + <include>src/main/js/**/*.css</include> |
| 325 | + <include>src/test/**/*.js</include> |
| 326 | + <include>src/test/**/*.html</include> |
| 327 | + <include>src/test/**/*.css</include> |
| 328 | + <include>src/test/**/application.properties</include> |
| 329 | + <include>src/main/config/assembly.xml</include> |
| 330 | + <include>**/build.properties</include> |
| 331 | + <include>**/gulpfile.js</include> |
| 332 | + <include>**/pom.xml</include> |
| 333 | + </includes> |
| 334 | + <excludes> |
| 335 | + <exclude>src/main/js/**/*.min.js</exclude> |
| 336 | + </excludes> |
| 337 | + <mapping> |
| 338 | + <vue>XML_STYLE</vue> |
| 339 | + </mapping> |
| 340 | + </configuration> |
| 341 | + <executions> |
| 342 | + <execution> |
| 343 | + <goals> |
| 344 | + <goal>format</goal> |
| 345 | + </goals> |
| 346 | + <phase>process-sources</phase> |
| 347 | + </execution> |
| 348 | + </executions> |
| 349 | + </plugin> |
306 | 350 | <plugin> |
307 | 351 | <groupId>com.google.code.maven-replacer-plugin</groupId> |
308 | 352 | <artifactId>replacer</artifactId> |
|
341 | 385 | <goals> |
342 | 386 | <goal>buildPacksProperties</goal> |
343 | 387 | </goals> |
| 388 | + <configuration> |
| 389 | + <!-- don't list not shipped bundles in the |
| 390 | + META-INF\js-registry-packs.properties file --> |
| 391 | + <scanPackagesExcludes>apps/**,bundles/sample_tests</scanPackagesExcludes> |
| 392 | + </configuration> |
344 | 393 | </execution> |
345 | 394 | </executions> |
346 | 395 | <configuration> |
|
351 | 400 | <plugin> |
352 | 401 | <groupId>de.conterra.mapapps</groupId> |
353 | 402 | <artifactId>mapapps-maven-plugin</artifactId> |
| 403 | + <configuration> |
| 404 | + <!-- only build zip files --> |
| 405 | + <skipDeploy>true</skipDeploy> |
| 406 | + <sourceDirectory>${js.build.outputPath}/apps</sourceDirectory> |
| 407 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 408 | + </configuration> |
354 | 409 | <executions> |
355 | 410 | <execution> |
356 | 411 | <!-- used to create .zip files containing the apps during the build --> |
|
379 | 434 | </configuration> |
380 | 435 | </execution> |
381 | 436 | </executions> |
382 | | - <configuration> |
383 | | - <!-- only build zip files --> |
384 | | - <skipDeploy>true</skipDeploy> |
385 | | - <createApp>false</createApp> |
386 | | - <sourceDirectory>${js.build.outputPath}/apps</sourceDirectory> |
387 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
388 | | - </configuration> |
389 | | - </plugin> |
390 | | - <plugin> |
391 | | - <groupId>com.mycila</groupId> |
392 | | - <artifactId>license-maven-plugin</artifactId> |
393 | | - <configuration> |
394 | | - <header>${project.baseUri}apache2-license-header.txt</header> |
395 | | - <properties> |
396 | | - <owner>con terra GmbH</owner> |
397 | | - <email>info@conterra.de</email> |
398 | | - <project.inceptionYear>2021</project.inceptionYear> |
399 | | - </properties> |
400 | | - <includes> |
401 | | - <include>src/main/js/**/*.js</include> |
402 | | - <include>src/main/js/**/*.ts</include> |
403 | | - <include>src/main/js/**/*.vue</include> |
404 | | - <include>src/main/js/**/*.css</include> |
405 | | - <include>src/test/**/*.js</include> |
406 | | - <include>src/test/**/*.html</include> |
407 | | - <include>src/test/**/*.css</include> |
408 | | - <include>src/test/**/application.properties</include> |
409 | | - <include>src/main/config/assembly.xml</include> |
410 | | - <include>**/build.properties</include> |
411 | | - <include>**/gulpfile.js</include> |
412 | | - <include>**/pom.xml</include> |
413 | | - </includes> |
414 | | - <mapping> |
415 | | - <vue>XML_STYLE</vue> |
416 | | - </mapping> |
417 | | - </configuration> |
418 | | - <executions> |
419 | | - <execution> |
420 | | - <goals> |
421 | | - <goal>format</goal> |
422 | | - </goals> |
423 | | - <phase>process-sources</phase> |
424 | | - </execution> |
425 | | - </executions> |
426 | 437 | </plugin> |
427 | 438 | <plugin> |
428 | 439 | <artifactId>maven-assembly-plugin</artifactId> |
|
443 | 454 | </execution> |
444 | 455 | </executions> |
445 | 456 | </plugin> |
| 457 | + <plugin> |
| 458 | + <artifactId>maven-release-plugin</artifactId> |
| 459 | + <configuration> |
| 460 | + <tagNameFormat>@{project.version}</tagNameFormat> |
| 461 | + <preparationGoals>clean</preparationGoals> |
| 462 | + <releaseProfiles>compress</releaseProfiles> |
| 463 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 464 | + </configuration> |
| 465 | + </plugin> |
446 | 466 | </plugins> |
447 | 467 | </build> |
448 | 468 | <scm> |
|
464 | 484 | </distributionManagement> |
465 | 485 | <properties> |
466 | 486 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
467 | | - <!-- dojo custom build parameters --> |
468 | 487 | <root.build.outputPath>${project.build.directory}/webapp</root.build.outputPath> |
469 | 488 | <js.build.outputPath>${root.build.outputPath}/js</js.build.outputPath> |
470 | 489 |
|
471 | 490 | <mapapps.version>4.17.0</mapapps.version> |
| 491 | + <vuetify.version>1.5.28</vuetify.version> |
472 | 492 | <!-- JS lib versions --> |
473 | 493 | <apprt.version>${mapapps.version}</apprt.version> |
474 | 494 | <!-- java lib versions --> |
|
478 | 498 | <!-- the default app, replaced in the *.html files to switch app names--> |
479 | 499 | <default.app.name>manager</default.app.name> |
480 | 500 |
|
| 501 | + <!-- don't do this in production configuration! This allows to go any http traffic over the |
| 502 | + /proxy endpoint --> |
| 503 | + <proxy.allowedServerUrls> |
| 504 | + *://*:*/**; |
| 505 | + </proxy.allowedServerUrls> |
| 506 | + <proxy.allowedSSLDNs>*</proxy.allowedSSLDNs> |
| 507 | + <proxy.use.rules></proxy.use.rules> |
481 | 508 | <cors.request.trustedServers>$\{mapapps.remote.base\}</cors.request.trustedServers> |
482 | 509 | <proxy.use.rules></proxy.use.rules> |
483 | 510 | <mvn.cmd>mvn</mvn.cmd> |
484 | 511 | <gulp.task></gulp.task> |
| 512 | + <gulp.node.env>development</gulp.node.env> |
485 | 513 |
|
486 | 514 | <mapapps.user> |
487 | 515 | <!-- set correct username for map.apps remote installation--> |
|
492 | 520 | <mapapps.token> |
493 | 521 | <!-- set correct token for map.apps remote installation--> |
494 | 522 | </mapapps.token> |
| 523 | + |
495 | 524 | <!-- set to false if map.apps is configured behind integrated windows authentication is |
496 | 525 | required --> |
497 | 526 | <mapapps.useChunkedRequestEncoding>true</mapapps.useChunkedRequestEncoding> |
|
506 | 535 | <dependencies> |
507 | 536 | <dependency> |
508 | 537 | <groupId>de.conterra.mapapps</groupId> |
509 | | - <artifactId>ct-mapapps-js-api</artifactId> |
| 538 | + <artifactId>ct-mapapps-js</artifactId> |
510 | 539 | <scope>test</scope> |
511 | 540 | </dependency> |
512 | 541 | <dependency> |
|
585 | 614 | <profile> |
586 | 615 | <id>env-dev</id> |
587 | 616 | <!-- This is the development profile, per default it points to a build.properties |
588 | | - file in the user home, but this can be changed localy by specifiying the |
589 | | - property local.configfile with its own string. |
| 617 | + file in the user home, but this can be changed localy by specifiying the |
| 618 | + property local.configfile with its own string. |
590 | 619 | --> |
591 | 620 | <activation> |
592 | 621 | <property> |
|
637 | 666 | <build> |
638 | 667 | <plugins> |
639 | 668 | <plugin> |
640 | | - <artifactId>maven-deploy-plugin</artifactId> |
641 | | - <configuration> |
642 | | - <updateReleaseInfo>true</updateReleaseInfo> |
643 | | - </configuration> |
| 669 | + <groupId>de.conterra.jsregistry</groupId> |
| 670 | + <artifactId>ct-jsregistry-maven-plugin</artifactId> |
| 671 | + <executions> |
| 672 | + <execution> |
| 673 | + <id>calculate js dependencies</id> |
| 674 | + <goals> |
| 675 | + <goal>calculateDependencies</goal> |
| 676 | + </goals> |
| 677 | + </execution> |
| 678 | + <!-- |
| 679 | +
|
| 680 | + The optimizeJS goal is usually no longer required because compression is done via terser (see |
| 681 | + gulpfile.js 'compress' option). |
| 682 | + Uncomment this block only if you're still using `dojo/text!` in your source code. |
| 683 | + Reenabling the optimizeJS goal unfortunately removes all comments from your built JavaScript, which |
| 684 | + would incidentally also break source maps. |
| 685 | +
|
| 686 | + <execution> |
| 687 | + <id>optimize js</id> |
| 688 | + <goals> |
| 689 | + <goal>optimizeJS</goal> |
| 690 | + </goals> |
| 691 | + <configuration> |
| 692 | + <compress>false</compress> |
| 693 | + </configuration> |
| 694 | + </execution> --> |
| 695 | + </executions> |
644 | 696 | </plugin> |
645 | 697 | </plugins> |
646 | 698 | </build> |
|
655 | 707 | <configuration> |
656 | 708 | <skipDeploy>${skip.apps.upload}</skipDeploy> |
657 | 709 | <deployAsApp>true</deployAsApp> |
658 | | - <appName>${project.artifactId}</appName> |
659 | | - <appTitle>${project.artifactId}-${project.version}</appTitle> |
660 | 710 | <appEditorState>PUBLISHED</appEditorState> |
661 | 711 | <serverResourcesEndpoint>${mapapps.remote.base}/resources</serverResourcesEndpoint> |
662 | 712 | <username>${mapapps.user}</username> |
|
0 commit comments