Skip to content

sed: -e expression #1, char 125: unknown option to `s' #11486

Closed

Description

@bmarwell

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.

Activity

  1. added
    bug
    on Nov 24, 2025
  2. bmarwell commented on Nov 24, 2025

    @bmarwell
    ContributorAuthor

    I think this might be due to 335ba39

    It introduces @ as a separator char, but jenkins uses @ for multiple workspaces.

  3. bmarwell commented on Nov 25, 2025

    @bmarwell
    ContributorAuthor

    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.

  4. added this to the 4.0.0 milestone on Nov 26, 2025
  5. added a commit that references this issue on Nov 27, 2025
  6. gnodet commented on Mar 23, 2026

    @gnodet
    Contributor

    Fixed by #11537 (merged to maven-4.0.x).

    Claude Code on behalf of Guillaume Nodet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugmvn4

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions