I have a Maven 2 multi-module project and want to be sure everything is taken from my local checked-out source.
Maven download stuffs (dependencies) only if it's not available in your local reposiotory ($USER_HOME/.m2/repository
). If you do not want anything to be downloaded use offline mode. This can be done by using -o
switch. E.g.
mvn -o clean install
There is nothing expensive in it. If you are building the complete parent project, it will build all the modules and then copy the artifacts to your local repository. Then, when you build a project that has dependencies on those project, Maven will just copy them from local repository on your hard disk to the package that is going to be created for current project.
No. I have been burnt. Maven does not compile dependencies automatically. There is a plugin called Maven Reactor Plug-in. This plugin enables you to build a project's dependencies before the project is built.