Skip to content

Commit

Permalink
feat: option to build war or fatJar
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaeu authored and MichaelsJP committed Jan 31, 2024
1 parent ef05700 commit 1318f5c
Showing 1 changed file with 27 additions and 1 deletion.
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 1318f5c

Please sign in to comment.