Custom WildFly Module POM Example

From NovaOrdis Knowledge Base
Revision as of 15:10, 23 February 2017 by Ovidiu (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>