Skip to content

xargs -0 not available on AIX, FreeBSD, etc. #11485

Closed

Description

@bmarwell

Affected version

4.0.0-rc-5

Bug description

Commit aeff353 introduced xargs -0, which is sadly only available on Linux and some other OSes, but not a posix default.

Offending line: https://github.com/apache/maven/blame/master/apache-maven/src/assembly/maven/bin/mvn#L178

For example, AIX will print:

./mvnw <options>

xargs: The -0 flag is not valid.
Usage: xargs [-ptx] [-e[EndOfFileString]] [-E EndOfFileString]
        [-i[ReplacementString]] [-I ReplacementString | -L Number |-n Number ]
       [-l[Number]] [-s Size] [Command [Argument ...]]
Usage: java [options] <mainclass> [args...]
           (to execute a class)
   or  java [options] -jar <jarfile> [args...]
           (to execute a jar file)
   or  java [options] -m <module>[/<mainclass>] [args...]
       java [options] --module <module>[/<mainclass>] [args...]
           (to execute the main class in a module)
   or  java [options] <sourcefile> [args]
           (to execute a single source-file program)

Activity

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

    @bmarwell
    ContributorAuthor
  3. added 3 commits that reference this issue on Nov 24, 2025
  4. added this to the 4.0.0 milestone on Nov 26, 2025
  5. 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

Labels

bugmvn4

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions