Install a single pom.xml in your local repository

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s