[ http://jira.codehaus.org/browse/MWAR-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137205#action_137205 ]
Mark Struberg commented on MWAR-131: ------------------------------------ There was a similar discussion back in early 2006 (related to MWAR-73). Imho, there are 3 different situations which may occur: 1.) We get a WAR file as a dependency which is *not* built with maven and contains all needed dependencies in WEB-INF/lib. In this case, we must not evaluate and use the transitive dependencies we get from this WAR (usually this WAR will not have transitive dependencies at all) This is the current behavior of the maven-war-plugin 2.) We get a WAR file as a dependency which is built with maven and does *not* contain transitive dependencies in WEB-INF/lib. So we could easily take all transitive dependencies and tie them together in the freshly packaged WEB-INF/lib 3.) A mixture between 1.) and 2.) We get a WAR file as a dependency which is built with maven and contains all needed dependencies in WEB-INF/lib In this case, there should be a switch to enable transitive dependency resolution and automatically ignoring all jars in WEB-INF/lib which fits any of the dependencies (otherwise we would end up having different versions of the same jar in WEB-INF/lib). If we find any depending WAR having an attached classes artifact (as of this Jira), we should skip the WEB-INF/classes of those WARs in the war:overlay > Ability to deploy the content of WEB-INF/classes as a classified artifact > ------------------------------------------------------------------------- > > Key: MWAR-131 > URL: http://jira.codehaus.org/browse/MWAR-131 > Project: Maven 2.x War Plugin > Issue Type: Improvement > Affects Versions: 2.1-alpha-1 > Reporter: Stephane Nicoll > Assignee: Stephane Nicoll > Fix For: 2.1-alpha-2 > > > If the server-side code of a war project need to be reused somewhere, we need > to deploy the content of the WEB-INF/classes to be able to use it as a > dependency -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira