[
https://issues.apache.org/jira/browse/MSHARED-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959202#comment-17959202
]
Matthias Bünger commented on MSHARED-73:
----------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-verifier#120|https://github.com/apache/maven-verifier/issues/120].
> Verifier doesn't throw VerificationException upon non-zero exit code of
> mvn.bat on Windows
> ------------------------------------------------------------------------------------------
>
> Key: MSHARED-73
> URL: https://issues.apache.org/jira/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
> Assignee: Benjamin Bentmann
> Priority: Major
> Fix For: maven-verifier-1.2
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)