Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven2 - Deploy only master pom

Tags:

maven-2

maven

I have a master POM which has many modules defined in it.

I want to make some minor changes to the master POM and deploy the new Master POM to our nexus instance.

Everything is confgured ok to allow this, but when I do a mvn clean install deploy all the modules are built and deployed too. I dont want this.

How do I tell maven to just deploy the master POM and not build/deploy the modules? Can this be done?

like image 410
theINtoy Avatar asked May 29 '26 02:05

theINtoy


1 Answers

Use this option:

-N,--non-recursive            Do not recurse into sub-projects

Reference: http://maven.apache.org/guides/mini/guide-multiple-modules.html

like image 124
ziesemer Avatar answered Jun 01 '26 02:06

ziesemer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!