It turns out the order of the published artifacts is honored so just reordering may be enough. Is the order of published artifacts in ivy.xml guaranteed to always be the same as the ivy property ivy.artifact.[0-9]?
-----Original Message----- From: Richard Mauri [mailto:rma...@ariba.com] Sent: Wednesday, April 11, 2012 9:21 AM To: ivy-user@ant.apache.org Subject: single ivy module publishing war and jar artifacts (war will contain the jar) - control the build order of published artifacts Greetings We have a single module publishing a war and a jar artifact. We want the published jar artifact to be built first and the war artifact next and containing the jar. We find the order is sometimes wrong (the ordering in the publishes section is not honored) I see some alternatives and I'd like others to comment on their recommendations. a) Split into two modules with the war module depending on the jar module b) Keep sing module, but introduce an extra attribute like e:buildorder representing the build order. Then in the ant packaging target iterate over the list of artifacts in order according to the buildorder. Today we use: <ivy:info file="${basedir}/ivy.xml"/> <ac:propertyselector property="artifactids" match="ivy\.artifact\.([0-9]+)\.name" select="\1"/> Maybe the ivy.artifact... property will have the extra attribute and we can sort ? I like approach a) but my team doesn't . Is there an example of doing this in a single module ? Suggestions? Thanks, Rich