I use maven to create war files for my app. The war file in turn uses some 3rd party libraries. The app is run on Jboss 4.x. Now we are moving over to Jboss 7.
Some of the 3rd party libraries are provided by default in Jboss 6, hence I would not like to include them when I build my war file for it.
The problem I have is I need to support the build of war files for both versions of Jboss without doing too many changes. I need to include the 3rd party lib's in the war file if I want it to be deployed for 4.x but do not want it to be included when i do the build for Jboss7.
I looked at maven dependency but I think that is not the way. Is there any way for me to achieve it.