[jboss-dev-forums] [JBoss AS 7 Development] - Re: EAR jars dependency
Stephen Coy
do-not-reply at jboss.com
Mon Sep 3 21:28:20 EDT 2012
Stephen Coy [https://community.jboss.org/people/sfcoy] created the discussion
"Re: EAR jars dependency"
To view the discussion, visit: https://community.jboss.org/message/757688#757688
--------------------------------------------------------------
It's easy enough to get maven to generate manifest classpath entries:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
but I agree with Stuart. Moving library jars to the EAR/lib directory is much more manageable.
Also, the current maven-ear-plugin is pretty good at assembling correct EAR files this way too:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<version>6</version>
<generateApplicationXml>true</generateApplicationXml>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<skinnyWars>true</skinnyWars>
<modules>
<webModule>
<groupId>${project.groupId}</groupId>
<artifactId>...</artifactId>
<contextRoot>...</contextRoot>
</webModule>
<webModule>
<groupId>${project.groupId}</groupId>
...
</webModule>
<ejbModule>
<groupId>${project.groupId}</groupId>
<artifactId>...</artifactId>
</ejbModule>
</modules>
</configuration>
</plugin>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757688#757688]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120903/0f2dbc2d/attachment.html
More information about the jboss-dev-forums
mailing list