maven
maven copied to clipboard
sed: -e expression #1, char 125: unknown option to `s'
Affected version
4.0.0-rc-5
Bug description
When executing mvnw version 4.0.0-rc-5 on Linux, this is what I see:
+ exec $HOME/.m2/wrapper/dists/apache-maven-4.0.0-rc-5/ae941026/bin/mvn --show-version --batch-mode --errors --fail-at-end -Pdocs '"-Dmaven.multiModuleProjectDirectory=$JENKINSNODE_PATH/workspace/project_PR-350@2"' -DtrimStackTrace=false -Daether.connector.http.supportWebDav=true '"-Dmaven.repo.local=$JENKINSNODE_PATH/workspace/project_PR-350@2/.m2/repository"' -Dmaven.test.failure.ignore --no-transfer-progress -Dliberty.var.default.http.host=localhost -Dserver.bind.name=localhost spotless:check clean verify
sed: -e expression #1, char 125: unknown option to `s'
sed: -e expression #1, char 125: unknown option to `s'
sed: -e expression #1, char 125: unknown option to `s'
Usage: java [java options...] <application> [application arguments...]
I will figure out which occurrence of sed this is and report back.
I think this might be due to https://github.com/apache/maven/commit/335ba3941c2804704ef11598eb512c305045ab58
It introduces @ as a separator char, but jenkins uses @ for multiple workspaces.
It might be enough that we use the pipe symbol here as well. It's not likely to appear in a path. It worked with a pipe symbol for years now in the other occurrence.