On Thu, Apr 5, 2012 at 1:11 PM, Rajwinder Makkar <[email protected]>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
>


I've never heard of being able to do that from a Maven command.  I do know
that Jenkins has the ability to do this very thing: deploy the artifacts to
a repository only if all of the artifacts successfully build.  But I
thought they added this because maven doesn't do this (?).

Thanks,
Ed

Reply via email to