<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>legacyworlds-web</artifactId>
<groupId>com.deepclone.lw</groupId>
<version>1.0.0</version>
<relativePath>../legacyworlds-web/pom.xml</relativePath>
</parent>
<artifactId>legacyworlds-web-DIST</artifactId>
<version>${legacyworlds.version.main}.${legacyworlds.version.release}-${legacyworlds.version.build}</version>
<packaging>pom</packaging>
<name>Legacy Worlds - Web - Packaging</name>
<description>This Maven module is responsible for creating the Legacy Worlds web interface's packaging.</description>
<!-- Depend on both WAR projects -->
<dependencies>
<dependency>
<artifactId>legacyworlds-web-main</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<artifactId>legacyworlds-web-admin</artifactId>
</dependencies>
<build>
<plugins>
<!-- Clean the target directory before generating the distribution -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>clean-before-assembly</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Use the assembly plug-in to generate the distribution -->
<artifactId>maven-assembly-plugin</artifactId>
<id>distribution-assembly</id>
<phase>package</phase>
<goal>single</goal>
<configuration>
<attach>false</attach>
<finalName>legacyworlds-web-${project.version}</finalName>
<descriptors>
<descriptor>src/web.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugins>
</build>
</project>