<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>loadtime</id> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <zip destfile="etc/security.aop"> <zipfileset dir="res" prefix="META-INF" includes="jboss-aop.xml" /> </zip> </tasks> </configuration> </execution> <execution> <id>precompiled</id> <phase>process-classes</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <path id="aop.classpath"> <path refid="maven.plugin.classpath" /> <path refid="maven.runtime.classpath" /> </path> <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="maven.compile.classpath" /> <aopc compilerclasspathref="maven.runtime.classpath" classpathref="aop.classpath" verbose="false"> <classpath path="maven.runtime.classpath" /> <src path="bin" /> <aoppath path="res/jboss-aop.xml" /> <include name="**/Domain.class" /> </aopc> </tasks> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>jboss.jboss-aop</groupId> <artifactId>jboss-aop</artifactId> <version>1.5.6.GA</version> </dependency> <dependency> <groupId>jboss</groupId> <artifactId>javassist</artifactId> <version>3.7.ga</version> </dependency> <dependency> <groupId>trove</groupId> <artifactId>trove</artifactId> <version>1.1-beta-5</version> </dependency> <dependency> <groupId>concurrent</groupId> <artifactId>concurrent</artifactId> <version>1.3.4</version> </dependency> <dependency> <groupId>jboss</groupId> <artifactId>jboss-common</artifactId> <version>4.0.2</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>res</directory> <targetPath>META-INF</targetPath> <includes> <include>*.jar.hcf</include> <include>*.jar.xml</include> <include>jboss-aop.xml</include> </includes> </resource> </webResources> </configuration> </plugin>