title: How to have maven automatically build assembly submodule after new submodules
body: <p>I have a multi-module maven project that uses the assembly plugin to create an archive of all the binaries produced by the submodules. As recommended <a href="http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html" rel="nofollow">in this article</a>, I put my assembly descriptor in a new submodule called distribution. The assembly works properly, but has to build after all of the other submodules. </p>
  
  <p>Developers routinely create new submodules using the maven-archetype-quickstart archetype, which adds the new submodule to the end of the  section in the parent POM. The build will then not work correctly unless either the  section in the parent POM is re-sorted, or the new submodule is added as a dependency of the distribution submodule.</p>
  
  <p>Is there any way to avoid having to do one of these manual steps each time a new submodule is added?</p>