Skip to content

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

@bmarwell

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.

Metadata

Metadata

Assignees

Labels

breakingPull requests that break existing featuresbugSomething isn't workingmvn40

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions