|
7 | 7 | <artifactId>mapapps-4-developers</artifactId> |
8 | 8 | <version>1.0.0-SNAPSHOT</version> |
9 | 9 | <packaging>jar</packaging> |
10 | | - <repositories> |
11 | | - <repository> |
12 | | - <id>52n-dependencies</id> |
13 | | - <name>52n-dependencies</name> |
14 | | - <url>https://52north.org/maven/repo/releases</url> |
15 | | - </repository> |
16 | | - </repositories> |
17 | | - <pluginRepositories> |
18 | | - <pluginRepository> |
19 | | - <id>52n-dependencies</id> |
20 | | - <name>52n-dependencies</name> |
21 | | - <url>https://52north.org/maven/repo/releases</url> |
22 | | - </pluginRepository> |
23 | | - </pluginRepositories> |
24 | 10 | <dependencyManagement> |
25 | 11 | <dependencies> |
26 | 12 | <!-- dependency versions available --> |
|
353 | 339 | <js.build.outputPath>${root.build.outputPath}/js</js.build.outputPath> |
354 | 340 |
|
355 | 341 |
|
356 | | - <mapapps.version>4.19.1</mapapps.version> |
| 342 | + <mapapps.version>4.19.2</mapapps.version> |
357 | 343 | <!-- JS lib versions --> |
358 | 344 | <apprt.version>${mapapps.version}</apprt.version> |
359 | 345 |
|
360 | 346 | <!-- java lib versions --> |
361 | | - <ct.jsregistry.version>2.1.4</ct.jsregistry.version> |
| 347 | + <ct.jsregistry.version>2.1.6</ct.jsregistry.version> |
362 | 348 |
|
363 | 349 | <!-- the default app, replaced in the *.html files to switch app names--> |
364 | 350 | <default.app.name>Demo</default.app.name> |
|
376 | 362 | <gulp.task></gulp.task> |
377 | 363 | <gulp.node.env>development</gulp.node.env> |
378 | 364 |
|
379 | | - <mapapps.user><!-- Set username for map.apps remote installation--> |
380 | | - </mapapps.user> |
381 | | - <mapapps.pw><!-- Set password for map.apps remote installation--> |
382 | | - </mapapps.pw> |
383 | | - <mapapps.token><!-- Set token for map.apps remote installation--> |
384 | | - </mapapps.token> |
| 365 | + <!-- Set username for map.apps remote installation, use ${env.MAPAPPS_USER} to reference a environment variable --> |
| 366 | + <mapapps.user>${env.MAPAPPS_USER}</mapapps.user> |
| 367 | + <!-- Set password for map.apps remote installation, use ${env.MAPAPPS_USER_PASSWORD} to reference a environment variable --> |
| 368 | + <mapapps.pw></mapapps.pw> |
| 369 | + <!-- Set token for map.apps remote installation, use ${env.MAPAPPS_TOKEN} to reference a environment variable --> |
| 370 | + <mapapps.token></mapapps.token> |
385 | 371 |
|
386 | 372 | <!-- set to false if map.apps is configured behind integrated windows authentication is |
387 | 373 | required --> |
|
498 | 484 | <groupId>de.conterra.jsregistry</groupId> |
499 | 485 | <artifactId>ct-jsregistry-maven-plugin</artifactId> |
500 | 486 | <executions> |
| 487 | + <!-- |
| 488 | + Not longer required, because the calculation of the dependencies is done via rollup build. |
501 | 489 | <execution> |
502 | 490 | <id>calculate js dependencies</id> |
503 | 491 | <goals> |
504 | 492 | <goal>calculateDependencies</goal> |
505 | 493 | </goals> |
506 | | - </execution> |
| 494 | + </execution>--> |
507 | 495 | <!-- |
508 | 496 |
|
509 | 497 | The optimizeJS goal is usually no longer required because compression is done via terser (see |
|
567 | 555 | </plugins> |
568 | 556 | </build> |
569 | 557 | </profile> |
| 558 | + <profile> |
| 559 | + <!-- Triggers a standalone export of the apps. |
| 560 | + This profile should only be used together with the compressed profile. |
| 561 | + Example: |
| 562 | + mvn clean package -P compress,standalone |
| 563 | + --> |
| 564 | + <id>standalone</id> |
| 565 | + <dependencies> |
| 566 | + <!-- ensure the correct production dependencies are used during standalone export --> |
| 567 | + <dependency> |
| 568 | + <groupId>de.conterra.mapapps</groupId> |
| 569 | + <artifactId>ct-mapapps-js-bom-prod</artifactId> |
| 570 | + <version>${mapapps.version}</version> |
| 571 | + <type>pom</type> |
| 572 | + <scope>test</scope> |
| 573 | + </dependency> |
| 574 | + </dependencies> |
| 575 | + <build> |
| 576 | + <plugins> |
| 577 | + <plugin> |
| 578 | + <groupId>de.conterra.mapapps</groupId> |
| 579 | + <artifactId>mapapps-maven-plugin</artifactId> |
| 580 | + <version>${mapapps.version}</version> |
| 581 | + <executions> |
| 582 | + <execution> |
| 583 | + <id>create-standalone-apps</id> |
| 584 | + <goals> |
| 585 | + <goal>standaloneApp</goal> |
| 586 | + </goals> |
| 587 | + <configuration> |
| 588 | + <!-- Export target folder. All apps are exported into this folder. --> |
| 589 | + <outputDirectory>${project.build.directory}/export</outputDirectory> |
| 590 | + <!-- folder where the apps for export are located --> |
| 591 | + <sourceDirectory>${project.build.directory}/webapp/js/apps</sourceDirectory> |
| 592 | + <!-- (optional) regex which apps should be exported. By default all in the sourceDirectory. --> |
| 593 | + <includePattern>.*</includePattern> |
| 594 | + <!-- (optional) regex which apps should not be exported. By default empty. --> |
| 595 | + <skipPattern></skipPattern> |
| 596 | + <!-- (optional) folder to a local bundles directory, which is used as source of bundles. The bundles need to be compressed and have a dependencies.json. --> |
| 597 | + <localBundlesDirectory>${project.build.directory}/webapp/js/bundles</localBundlesDirectory> |
| 598 | + <!-- (optional) folder with custom index.html or config.js file of the exported app. --> |
| 599 | + <standaloneTemplateOverride>${project.build.directory}/standalone-template</standaloneTemplateOverride> |
| 600 | + <!-- (optional) read the application.properties as source for property replacement of the exported files --> |
| 601 | + <applicationProperties>${project.build.directory}/test-classes/application.properties</applicationProperties> |
| 602 | + <!-- (optional) define further replacement properties, this will overwrite settings from the application.properties --> |
| 603 | + <replacementProperties> |
| 604 | + <myproperty>xyz</myproperty> |
| 605 | + </replacementProperties> |
| 606 | + <!-- (optional) custom javascript modules included in the apps layer file |
| 607 | + e.g. myBundle/someModule,myBundle/anotherModule |
| 608 | + --> |
| 609 | + <exportCustomModules>map-preload-2D</exportCustomModules> |
| 610 | + <!-- (optional) custom files included in the export |
| 611 | + e.g. myBundle/*.gif,myBundle/*.svg |
| 612 | + --> |
| 613 | + <exportCustomFiles></exportCustomFiles> |
| 614 | + |
| 615 | + <!-- If true .js, .json and .css files are pre-compressed, |
| 616 | + which means that .gz and .br variants of the files are added to the export. |
| 617 | + Enable it only if your target server supports pre-compressed files. |
| 618 | + The files are only compressed if the size of the file is bigger than the compressMinSize. |
| 619 | + The compressMinSize is in bytes. |
| 620 | + --> |
| 621 | + <compressFiles>false</compressFiles> |
| 622 | + <compressMinSize>512000</compressMinSize> |
| 623 | + </configuration> |
| 624 | + </execution> |
| 625 | + </executions> |
| 626 | + </plugin> |
| 627 | + </plugins> |
| 628 | + </build> |
| 629 | + </profile> |
570 | 630 | <profile> |
571 | 631 | <id>write-release-versions</id> |
572 | 632 | <properties> |
|
0 commit comments