Skip to content

Instantly share code, notes, and snippets.

@floverfelt
Created October 18, 2020 17:14
Show Gist options
  • Save floverfelt/dbda884bbc287656cd09f4b1eee2ea7a to your computer and use it in GitHub Desktop.
Save floverfelt/dbda884bbc287656cd09f4b1eee2ea7a to your computer and use it in GitHub Desktop.
pom of the local-war build
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>local-war-parent</artifactId>
<groupId>local.mstr.war</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>
<artifactId>local-war</artifactId>
<dependencies>
<dependency>
<groupId>mstr</groupId>
<artifactId>mstr-war</artifactId>
<version>${mstr.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>plugin1</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>default-war</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
<configuration>
<overlays>
<overlay>
<groupId>${project.groupId}</groupId>
<artifactId>plugin1</artifactId>
<targetPath>plugins/plugin1</targetPath>
</overlay>
<overlay>
<!-- empty groupId/artifactId represents the current build -->
</overlay>
<overlay>
<groupId>mstr</groupId>
<artifactId>mstr-war</artifactId>
<targetPath>/</targetPath>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment