I'm a Lead engineer at Terracotta, Software AG. I have 10+ years of experience with Java, but I also speak other languages, C, C++, Javascript, Coffeescript, PHP, Perl... See my blog to know about my different personal projects! Aurelien is a DZone MVB and is not an employee of DZone and has posted 17 posts at DZone. You can read more from them at their website. View Full User Profile

Install a single pom.xml in your local repository

12.12.2011
| 3140 views |
  • submit to reddit

Sometimes you have a pom.xml that you want to install in your repository without wanting to install your whole build.

Huh? When?

For instance you have a multi-modules project, and you make a change to the parent pom. You want to install it but not having to install all the children modules.
There’s an option for that, that’s the ‘non-recursive’ directive.

mvn -N install

will install only what’s in the current directory.

 

From http://jsoftbiz.wordpress.com/2011/12/09/install-a-single-pom-xml-in-your-local-repository/

Published at DZone with permission of Aurelien Broszniowski, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)