<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-tomee.xml</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${project.basedir}/target/apache-tomee/conf</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/deploy/tomee</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>repack</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<mkdir
dir="${project.build.directory}/tomcat"/>
<move
file="${project.build.directory}/apache-tomee"
toDir="${project.build.directory}/tomcat"/>
<zip
basedir="${project.build.directory}/tomcat"
destfile="${project.build.directory}/tomee.zip"/>
<unzip
src="${project.build.directory}/app-aurora-mp-exec.jar"
dest="${project.build.directory}/tmp"/>
<delete
file="${project.build.directory}/tmp/tomee.zip"/>
<move
file="${project.build.directory}/tomee.zip"
tofile="${project.build.directory}/tmp/tomee.zip"/>
<delete
file="${project.build.directory}/app-aurora-mp-exec.jar"/>
<zip
basedir="${project.build.directory}/tmp"
destfile="${project.build.directory}/app-aurora-mp-exec.jar"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
In "${project.basedir}/deploy/tomee" lies the modified tomee.xml.