Custom WildFly Module POM Example: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Writing a Custom WildFly Module =Example= <pre> </pre>") |
|||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
<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> | |||
</pre> | </pre> |
Latest revision as of 15:10, 23 February 2017
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>