Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-73

Verifier doesn't throw VerificationException upon non-zero exit code of mvn.bat on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-verifier-1.0
    • maven-verifier-1.2
    • maven-verifier
    • None
    • Windows XP

    Description

      Running the core ITs on a Windows box I got:

      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)
      

      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.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: