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

With Maven 3.9.0, `maven.config` requires each flag on a separate line

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.9.0
    • None
    • None
    • None
    • Maven 3.9.0
      Ubuntu 20.04.5 LTS
      Bash shell

    Description

      Prior to Maven 3.9.0, the .mvn/maven.config file supported multiple flags on the same line. As of Maven 3.9.0 the flags must be on separate lines. I assume that this is an unintentional regression.

      To reproduce, run:

      git clone git@github.com:PicnicSupermarket/error-prone-support.git
      cd error-prone-support
      git checkout d1f513373fffe21fa463a9d6978cdfa8940e1ce4
      mvn -version
      

      With Maven 3.8.7 the mvn -version command completes successfully. With Maven 3.9.0 it fails with:

      Unable to parse maven.config file options: Unrecognized option: --batch-mode --errors --strict-checksums
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            stephan202 Stephan Schroevers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment