Skip to content

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

@bmarwell

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)

Metadata

Metadata

Labels

bugSomething isn't workingmvn4

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions