2007/9/11, Martin Gilday <[EMAIL PROTECTED]>: > > I think what you say is correct. I think my problem is really to do > with the Jetty plugin. I think by saying "test" I may have misled. My > situation simplified is this. dataTier has a dependency on Hibernate. > This is a dependency of webApp. dataTier is going to be placed in the > app servers lib folder (Hibernate is already there as this is JBoss AS), > as it contains a parent Spring application context which is used to > share a single SessionFactory across a few WebApps on the server. So > dataTier is marked as "provided" in webApp's POM.
Now everything is clear :-) IMHO the most elegant way to do it is by using profiles, but, again IMHO, the "Jetty" configuration should be the "default" profile, while the JBoss configuration is the "exception": just because usually all needed libraries are put in WEB-INF/lib, and putting in a common place is just an exception for your particular needs. At the end, I think that I did not answer your question :-( Antonio
