You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephan Schroevers (Jira)" <ji...@apache.org> on 2023/02/06 19:46:00 UTC

[jira] [Commented] (MNG-7684) With Maven 3.9.0, `maven.config` requires each flag on a separate line

    [ https://issues.apache.org/jira/browse/MNG-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17684904#comment-17684904 ] 

Stephan Schroevers commented on MNG-7684:
-----------------------------------------

[~michael-o] thanks for the quick response. Perhaps this is worth calling out more clearly in the [release notes|https://maven.apache.org/docs/3.9.0/release-notes.html].

> With Maven 3.9.0, `maven.config` requires each flag on a separate line
> ----------------------------------------------------------------------
>
>                 Key: MNG-7684
>                 URL: https://issues.apache.org/jira/browse/MNG-7684
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.9.0
>         Environment: Maven 3.9.0
> Ubuntu 20.04.5 LTS
> Bash shell
>            Reporter: Stephan Schroevers
>            Priority: Major
>
> 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:
> {code:sh}
> git clone git@github.com:PicnicSupermarket/error-prone-support.git
> cd error-prone-support
> git checkout d1f513373fffe21fa463a9d6978cdfa8940e1ce4
> mvn -version
> {code}
> With Maven 3.8.7 the {{mvn -version}} command completes successfully. With Maven 3.9.0 it fails with:
> {noformat}
> Unable to parse maven.config file options: Unrecognized option: --batch-mode --errors --strict-checksums
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)