[jboss-user] [JBoss AOP] - packaging .aop using maven?
Jonas Heineson
do-not-reply at jboss.com
Mon Apr 12 10:12:17 EDT 2010
Jonas Heineson [http://community.jboss.org/people/heineson] replied to the discussion
"packaging .aop using maven?"
To view the discussion, visit: http://community.jboss.org/message/536922#536922
--------------------------------------------------------------
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:
...
<plugin>
<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
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536922#536922]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100412/1f8e88d5/attachment.html
More information about the jboss-user
mailing list