Custom WildFly Module POM Example

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Example

<project>

    <parent>
        <groupId>example</groupId>
        <artifactId>root</artifactId>
        <version>...</version>
    </parent>

    <artifactId>eap-module</artifactId>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <finalName>mymodule-${project.version}</finalName>
                    <descriptors>
                        <descriptor>src/assembly/eap-module.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>assembly-execution</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>example</groupId>
            <artifactId>artifact-A</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>example</groupId>
            <artifactId>artifact-B</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
    
</project>