Skip to content

Commit

Permalink
feat: option to build war or fatJar (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
takb authored Jan 31, 2024
2 parents 6458260 + 399fd06 commit 0972549
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ RELEASING:
- `PBF_FILE_PATH`: value to overwrite the `ors.services.routing.sources` with
- add .editorconfig to streamline IDE code styling ([#1493](https://github.com/GIScience/openrouteservice/pull/1493))
- info on duration format in parameter description ([#1504](https://github.com/GIScience/openrouteservice/pull/1504))
- maven profile buildFatJar to build a fatJar (appliction with embedded tomcat, can be started with java -jar ors.jar)
instead of a war file
- YML configuration ([#1506](https://github.com/GIScience/openrouteservice/pull/1506))
- new backend documentation using VitePress([#1617](https://github.com/GIScience/openrouteservice/pull/1617))
- support for Norwegian language ([#1645](https://github.com/GIScience/openrouteservice/pull/1645))
Expand Down
28 changes: 27 additions & 1 deletion ors-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>ors-api</artifactId>
<name>ors-api</name>
<packaging>war</packaging>

<packaging>${packagingValue}</packaging>

<properties>
<!--
A default for packagingValue is needed, if profiles other than buildWar or buildFatJar are used, e.g. apitests.
The value is set/overridden in the profiles buildWar and buildFatJar, e.g.
mvn clean install -P buildFatJar
-->
<packagingValue>war</packagingValue>
</properties>

<build>
<finalName>ors</finalName>
Expand Down Expand Up @@ -278,7 +288,23 @@
<artifactId>jackson-annotations</artifactId>
</dependency>
</dependencies>

<profiles>
<profile>
<id>buildWar</id>
<properties>
<packagingValue>war</packagingValue>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>buildFatJar</id>
<properties>
<packagingValue>jar</packagingValue>
</properties>
</profile>
<profile>
<id>apitests</id>
<build>
Expand Down

0 comments on commit 0972549

Please sign in to comment.