Break your EAR project into ear, war, jar, ejb-jar ... tld, ... docs .. whatever you want. by declaring one project's artifact as a dependency in another you can control the order of the build.