JBoss.org Community Documentation
Since JBoss AOP requires either loadtime or compiletime weaving we need to customize maven a bit to make it do what we want. JBoss AOP provides plugins to make this weaving as easy as possible.
The JBoss AOP plugin is named jbossaop and is provided under the maven2 jboss.org repository. For the final releases use:
<repository> <id>maven.jboss.org</id> <name>JBoss Maven Repository</name> <url>http://repository.jboss.com/maven2</url> </repository>
If you want to use the snapshot releases use:
<repository> <id>snapshots.jboss.org</id> <name>JBoss Maven Snapshot Repository</name> <url>http://snapshots.jboss.org/maven2</url> </repository>
The jbossaop maven plugin will provide all the aop dependencies needed to weave and run. There is no need to include aop dependencies other than the plugin. NOTE: The version used in these examples may be obsolete, please check the latest release for the reference version instead of using the version in these examples.