Posts tagged maven
Now as most people will tell you I’m kind of a geek when it comes to Maven. It’s really a nice tool and it makes dependency management in large projects almost a no brainer…almost. The story I’m about to share is true, only the names have been changed to protect the innocent…
Recently I’ve had lots of questions about how to create multi-module projects, so when I discovered this technique, I thought I’d write this up. This technique exploits a little known feature of the
archetype:create plugin, and the Maven site archetype to kickstart your project. Creating a multi-module project has many benefits, one of them being the ability to build every artifact in a project with one simple
mvn compile command. Another benefit is that if you are using either the maven
eclipse:eclipse plugin or the
idea:idea plugin, you can enter this command at the root of the project and it will generate all of the project files for all of the contained modules.