-
1. Re: packaging .aop using maven?
mihel Apr 4, 2010 4:14 PM (in response to elangovans)2. I'm using XML file and I think that it is the right way, because you can change pointcuts without recompilation
1. I also have issues with packaging. I have to manually copy jboss-aop.xml file to the WEB-INF/classes/META-INF folder of my web application. I'm still looking for a better solution.
Any ideas on (1) anyone?
-
2. Re: packaging .aop using maven?
mihel Apr 4, 2010 4:17 PM (in response to mihel)Oh, I just found out that there should be hassle to copy jbss-aop.xml
I'm just putting it into src/main/resources/META-INF/jboss-aop.xml and it gets copied into the right place during the package goal.
Don't forget to point jboss-aop maven plugin to its location:
<aoppaths>
<aoppath>src/main/resources/META-INF/jboss-aop.xml</aoppath>
</aoppaths> -
3. Re: packaging .aop using maven?
heineson Apr 12, 2010 10:13 AM (in response to elangovans)Hi,
Regarding your first question, you can do this to get an .aop module via maven, if you put it inside an .ear:
1) Create a standard .jar-module and put your jboss-aop.xml inside the META-INF directory.
2) In the pom-file where you assembe the ear do like this:
...
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
...
<modules>
<javaModule>
<groupId>group.id</groupId>
<artifactId>aop-jar</artifactId>
<bundleFileName>aop-jar.aop</bundleFileName>
<includeInApplicationXml>true</includeInApplicationXml>
</javaModule>...
The <bundleFileName> tag will package the aop-jar.jar module as aop-jar.aop in the .ear.
I have only done this for .ear-modules, but you can always check if is is possible to do with the maven plugin for assembling .wars in case you want a .war archive
Regards
Jonas Heineson
-
4. Re: packaging .aop using maven?
afloom Nov 3, 2010 7:41 AM (in response to mihel)I'm working on a solution for aop packaging that would be incorporated into the JBoss Packaging Maven Plugin at Codehaus Mojo. Watch this ticket:
http://jira.codehaus.org/browse/MJBOSSPACK-37
/Anders
-
5. packaging .aop using maven?
afloom Jan 17, 2011 9:53 AM (in response to afloom)v2.2 of JBoss Packaging Maven Plugin has now been released, which includes support for AOP archives.
http://mojo.codehaus.org/jboss-packaging-maven-plugin/
/Anders
-
6. packaging .aop using maven?
elangovans Jan 17, 2011 12:38 PM (in response to afloom)Thanks Andres for the update on this thread. Will try it out.
Elangovan S
-
7. packaging .aop using maven?
afloom Jan 17, 2011 12:47 PM (in response to elangovans)Do so. Please report any issues you run into!
/Anders