I am stuck trying to build an "exploded war" artifact from a multi-module Ant/Ivy project. The project is old, stable and works if built from Ant/Ivy at command line or using Ant inside Intellij.
The problem is that several of the modules that go into the war have the same elements in them (like "index.html"). Normally the order is solved by building each module into a JAR and including the JARs into a final WAR. However, when trying to build a single "exploded war" the elements get written on top of each other, and whatever one goes into the "exploded war" artifact last winds up being the one that is used.
I have searched the help but I can't find an answer for this particular question: What determines the order of elements in an "exploded war" build, and how do I make sure they build in a particular order?