-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
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)