This extends the Maven assembly plugin with additional examples to create an assembly by controlling what artifacts get included in the archive.
Example 1: dev-assembly.xml
The datasource and properties files are packaged for DEV environment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <id>dev</id> <baseDirectory>/</baseDirectory> <formats> <format>zip</format> </formats> <fileSets> <fileSet> <directory>${basedir}/src/config/dev/ds</directory> <outputDirectory>ds</outputDirectory> <includes> <include>*-ds.xml</include> <include>*-jboss-beans.xml</include> </includes> </fileSet> <fileSet> <directory>${basedir}/src/config/dev/app-properties</directory> <outputDirectory>app-properties</outputDirectory> <includes> <include>**/*</include> </includes> </fileSet> </fileSets> </assembly> |
Example 2: dev-assembly.xml
Control what maven dependency jars and class files are included in the archive.
…
Read more ›