[jboss-user] [JBoss Tools] - Eclipse "Deployment Assembly" including too many jars in war

Brian Wallis do-not-reply at jboss.com
Mon Jun 6 01:38:24 EDT 2011

Brian Wallis [http://community.jboss.org/people/bwallis42] created the discussion

"Eclipse "Deployment Assembly" including too many jars in war"

To view the discussion, visit: http://community.jboss.org/message/608684#608684

I have a war project that is assembled from a number of other local projects and depencencies, the projects are all maven based builds. (JBoss Developer Studio is 4.0.0.GA running with JDK 1.6.0_24 on a Mac OSX 10.6).

To configure the war to deploy in a jboss 6 server in eclipse I configure the projects and the maven depencencies in the web deployment assembly under the Deployment Assembly tab in the project properties. The problem that I have is that I have to include the maven dependencies in the deployment assembly (of course) but that seems to be including *all* of the depencencies +regardless of the scope+. 

When I build the war in maven only the compile and runtime dependencies are included in the war but when running in jbds  the test and provided depencencies are also (wrongly) being included in the deployed war.

Is there any way to exclude these? They should not be included in the deployment and it means that I am developing and testing with something that is different from what is actually deployed in the real war file and the behaviour can change.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110606/08298901/attachment.html 

More information about the jboss-user mailing list