Add build-war maven profile
The profile builds a .war file with no embedded tomcat, so it can be deployed on a standalone tomcat instance
This commit is contained in:
23
pom.xml
23
pom.xml
@@ -14,7 +14,7 @@
|
|||||||
<groupId>de.77zzcx7</groupId>
|
<groupId>de.77zzcx7</groupId>
|
||||||
<artifactId>financer</artifactId>
|
<artifactId>financer</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>${packaging.type}</packaging>
|
||||||
|
|
||||||
<name>financer</name>
|
<name>financer</name>
|
||||||
|
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
<maven.compiler.source>1.9</maven.compiler.source>
|
<maven.compiler.source>1.9</maven.compiler.source>
|
||||||
<maven.compiler.target>1.9</maven.compiler.target>
|
<maven.compiler.target>1.9</maven.compiler.target>
|
||||||
<java.version>1.9</java.version>
|
<java.version>1.9</java.version>
|
||||||
|
<packaging.type>jar</packaging.type>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -58,7 +59,6 @@
|
|||||||
<artifactId>jollyday</artifactId>
|
<artifactId>jollyday</artifactId>
|
||||||
<version>0.5.7</version>
|
<version>0.5.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- TODO maybe set scope to provided when running in tomcat -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jaxb</groupId>
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
<artifactId>jaxb-runtime</artifactId>
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
@@ -154,5 +154,24 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>build-war</id>
|
||||||
|
<properties>
|
||||||
|
<packaging.type>war</packaging.type>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user