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&...]