Skip to content

[REGRESSION] Maven 4 fails to parse pipe symbols in .mvn/jvm.config #11363

Closed

Description

@bmarwell

Affected version

4.0.0-rc-4

Bug description

To reproduce, createe .mvn/jvm.config and add:

-Dhttp.nonProxyHosts=de|*.de|my.company.mirror.de

Then execute Maven and find this:

❯ ./mvnw clean verify -Prun-its
$HOME/.m2/wrapper/dists/apache-maven-4.0.0-rc-4/9c77e524/bin/mvn: line 265: *.de: command not found
$HOME/.m2/wrapper/dists/apache-maven-4.0.0-rc-4/9c77e524/bin/mvn: line 265: my.company.mirror.de: command not found
Usage: java [java options...] <application> [application arguments...]

Where <application> is one of:
  <mainclass>                to execute the main method of a compiled main class
  -jar <jarfile>.jar         to execute the main class of a JAR archive
  -m <module>[/<mainclass>]  to execute the main class of a module
  <sourcefile>.java          to compile and execute a source-file program

Where key java options include:
  --class-path <class path>
    where <class path> is a list of directories and JAR archives to search for class files, separated by ":"
  --module-path <module path>
    where <module path> is a list of directories and JAR archives to search for modules, separated by ":"
  -version
    to print product version to the error stream and exit

For additional help on usage:           java --help
For an interactive Java environment:    jshell

This only happens on Maven 4, not on Maven 3.

Activity

  1. added
    bug
    breaking
    on Oct 30, 2025
  2. added theissue type on Oct 30, 2025
  3. self-assigned this
    on Oct 30, 2025
  4. added 10 commits that reference this issue on Oct 31, 2025
  5. 12 remaining items

  6. added 11 commits that reference this issue on Nov 4, 2025
  7. added a commit that references this issue on Dec 10, 2025
    f492b32
  8. added a commit that references this issue on Dec 10, 2025
    da5f27e
  9. added a commit that references this issue on Dec 11, 2025
    6c191d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

breakingbugmvn40

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions