Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4669

Adjust the expected message string in MavenITmng2690MojoLoadingErrorsTest

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0-beta-1
    • None
    • Integration Tests
    • None
    • Patch

    Description

      The current MavenITmng2690MojoLoadingErrorsTest expects the following message:

      "(?i).required class was missing during (mojo )?configuration."

      in the mvn output when executing a mojo with a field that has a missing class.

      This pattern does not quite match the error when running with Guice, because Guice detects the missing class slightly earlier (before Maven configuration) while scanning the declared fields for @Inject annotations.

      The following pattern matches both Plexus and Guice error messages:

      "(?i).required class (i|wa)s missing( during (mojo )?configuration)?."

      any chance the attached patch could be applied to the MavenITmng2690MojoLoadingErrorsTest?

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            mcculls Stuart McCulloch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: