Quantcast

Modify build order?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Modify build order?

mort.motes
This post has NOT been accepted by the mailing list yet.
I have the following projects (physically separated in svn) with the
following structure:

a
|--> a.parent
         |--> pom.xml
...
|--> a.child
         |--> pom.xml



b
|--> b.parent
         |--> pom.xml
...
|--> b.child
         |--> pom.xml


c
|--> c.parent
         |--> pom.xml
...
|--> c.child
         |--> pom.xml


Now I would like to create an "aggregator" project where I can specify
the order of how the above project (and their submodules) should be
build, eg.:

my.aggregator.build:

a
b
c

or:



my.aggregator.build:

b
a
c



The problem is that the standard aggregator implementation:

http://maven.apache.org/pom.html#Aggregation

automatically computes the "right" order but I cannot use that since
my interdependent projects does not have a fixed structure - a longer
story.....

So is it possible to "hardcode" the order that projects should be
build in a master pom file?
Loading...