Does Maven return exit status 0 even for failed builds?

I am using Maven v2.2.1 in my linux block. I have a build script that calls mvn and does something based on build status. I noticed that the exit status code is set to 0 regardless of whether the mvn build failed or failed.

I also met http://jira.codehaus.org/browse/MNG-3651 , which claims that the problem is fixed in version 2.1.0-M1. Has anyone else noticed this?

thanks!

+6
source share

Source: https://habr.com/ru/post/886629/


All Articles