I suspect we could add that trick to mrm-maven-plugin with a little code... then you'd have
mvn mrm:stage-start clean deploy mrm:stage-commit mrm:stage-start would set the altDeploymentRepository property to redirect the deploy to mrm, and then mrm:stage-commit would push them to the root pom's distribution management url... (more fancy would be to push to each projects dist mgmt) Probably take me a couple of hours.... if only I had the bandwidth! -Stephen On 5 April 2012 05:40, Anders Hammar <and...@hammar.net> wrote: > 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 <rmakkaroff...@gmail.com> > 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >