Project multi-module release pom.xml

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
<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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <name>User-Friendly-Name-That-May-Include-Spaces Release Module</name>

    <parent>
        <groupId>io.novaordis.groupId</groupId>
        <artifactId>artifactId-root</artifactId>
        <version>1.0.0-SNAPSHOT-1</version>
    </parent>

    <artifactId>artifactId-release</artifactId>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <!--
                          finalName impacts only the locally built artifact, not the name of the artifact that gets
                          deployed in the repository.
                    -->
                    <finalName>artifactId-${project.version}</finalName>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>src/assembly/release.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>io.novaordis.groupId</groupId>
            <artifactId>artifactId</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

</project>