[ http://jira.codehaus.org/browse/MWAR-66?page=comments#action_72022 ] Brian Fox commented on MWAR-66: -------------------------------
There are additional problems with the way the overlaying is done. Example: War A is a template project. Lets say I have foo.html that is a default file. War B depends on War A but I want to override foo.html. War C depends on War B but I want to yet again override foo.html Because the war of the current project is assembled and then the overlays copied on top, the plugin needs logic to not overwrite files that already exist in the target folder. Then if we layer it such that C is built first and then B is overlaid and A last and we never overwrite a file that exists, we end up with what we intended. However, lets say we are in snapshot mode and developer working on B needs to see the results of his efforts in C. Because we've said that we can never overwrite the files that exist to get proper layering, this means that any files in B won't be recopied again to the target because they already exist. It means they need to do a clean build everytime. I had built a overlaying model before war support that worked opposite. I expand each dependent war into the target folder BEFORE the current project's war gets assembled. So in my example above, I expand A, then B overwriting all of A and then C get's assembled on top getting the last word. By always overwriting the files each time, if B changed, those files immediately take effect without a clean build. > No control over war overlay order > --------------------------------- > > Key: MWAR-66 > URL: http://jira.codehaus.org/browse/MWAR-66 > Project: Maven 2.x War Plugin > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: Brian Fox > > In order to do proper overlaying of the wars, we must have exact control over > the order of layering. Currently the wars are specified in the dependencies > and there's no guarantee to the order. The only solution that comes to mind > is additional configuration in the war plugin to specify the order like: > <configuration> > <overlays> > <overlay>group-artifact-version-type</overlay> > <overlay>group-artifact-version-type</overlay> > <overlay>group-artifact-version-type</overlay> > </overlays> > </configuration> -- 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