Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Install a single pom.xml in your local repository

DZone's Guide to

Install a single pom.xml in your local repository

· Java Zone
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

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/

Download Modern Java EE Design Patterns: Building Scalable Architecture for Sustainable Enterprise Development.  Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}