Verifier doesn't throw VerificationException upon non-zero exit code of mvn.bat
on Windows
------------------------------------------------------------------------------------------
Key: MSHARED-73
URL: http://jira.codehaus.org/browse/MSHARED-73
Project: Maven Shared Components
Issue Type: Bug
Components: maven-verifier
Affects Versions: maven-verifier 1.0
Environment: Windows XP
Reporter: Benjamin Bentmann
Running the core ITs on a Windows box I got:
{noformat}
Failed tests:
testitMNG3748(org.apache.maven.integrationtests.MavenITmng3748BadSettingsXmlTest)
testitMNG3314(org.apache.maven.integrationtests.MavenITmng3314OfflineSnapshotsTest)
testitMNG3220b(org.apache.maven.integrationtests.MavenITmng3220ImportScopeTest)
testitMNG2695(org.apache.maven.integrationtests.MavenITmng2695OfflinePluginSnapshotsTest)
{noformat}
Investigation showed these failures were due to the Verifier not detecting the
(expected) build failure of the IT. Just like in maven-invoker, the environment
variable MAVEN_TERMINATE_CMD needs to be set to quit the entire {{cmd.exe}}
process and not only {{mvn.bat}}.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira