On 04/04/2012 11:11 PM, 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
1) If the first modules build and pass their tests, then they should be
OK to deploy unless the tests are not sufficient.
2) If you are using SNAPSHOTs properly , it does not matter if they get
deployed.
3) If you do the build with "install" rather than "deploy" first, then
they will not fail in the "deploy".
Ron
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]