maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <>
Subject Re: Sub modules and goals
Date Thu, 05 Apr 2012 04:40:50 GMT
First, you don't need to execute "mvn clean install deploy". Just
execute "mvn clean deploy".

The feature of deploying only if ALL artifacts build ok is something
you need to look for in a repo manager. In Nexus you can use the
staging feature in the Pro version for this (there is planned support
for Snapshots which I believe will be part of the next version). I
*think* Artifactory has a similar feature, or at least some plugin for
Hudson that will do what you want. If you need more detailed info I
suggest asking on their mailing lists.

On Thu, Apr 5, 2012 at 05:11, Rajwinder Makkar <> wrote:
> Here is a scenario :
> I have one maven project which has sub modules defined in the root pom. So
> maven starts with root pom and then it hits <module> tag and start
> compiling the sub modules. goals i use are
> clean install deploy.
> What is happening here lets say root pom has 5 module and first one gets
> compiled and then deployed to remote maven repo then second one gett
> compiled and get deployed and lets assume it fails on 3rd module. So
> basically althoguh end of the day build fails but still it updates the
> remote maven repo that compiled fine.
> I deally if build fails then it should not deploy any thing. Is it
> configurable some how that maven compiles all modules and then only it
> deploy if successful ?
> -Raj

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message