JBoss.org Community Documentation
JBoss aop run plugin is configured to run after the package phase. There are less options here than for the compile step and they are very similar.
aoppaths
- an array of possible jboss-aop.xml files. Default is
src/main/resources/jboss-aop.xml
includeProjectDependency
- if set to true all project dependencies will also
be included to the aop classpath. Only needed if a class inherits a class thats not defined in
the current module. Default set to false.
classPath
- classpath, by default set to null. If its set to null it will use
the plugin dependencies (and add project dependencies if includeProjectDependency
is set) + the output build path. Do not change this if you are not sure.
executable
- the java class that will be executed
properties
- a list of properties (name, value objects) that will be added as JVM properties.
A small example:
<properties> <property> <name>log4j.configuration</name> <value>log4j.properties</value> </property> </properties>
This will add log4j.configuration as JVM properties like: -Dlog4j.configuration=log4j.properties.
A small example using default jboss-aop.xml:
<plugin> <groupId>org.jboss.maven.plugins</groupId> <artifactId>maven-jbossaop-plugin</artifactId> <version>1.0.CR1</version> <executions> <execution> <id>run</id> <configuration> <executable>Foo</executable> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>