Skip to content

auron-build.sh fails to parse options after -D arguments #2227

Closed

Description

@guixiaowen

When a -D Maven system property (e.g. -DskipBuildNative) appears before other command-line options, the script stops parsing further arguments, causing valid options after it to be ignored.

EG

sh auron-build.sh --pre --sparkver 3.5 --scalaver 2.12 -DskipBuildNative --sparktests true

Once a -D* argument is encountered, the argument parsing stops (due to break logic in -* handler).
Any options appearing after -D* (e.g. --sparktests, --sparkver) are not parsed.

ERROR INFO

`
[INFO] Starting Apache Auron build...

Unable to parse command line options: Unrecognized option: --sparktests

usage: mvn [options] [<goal(s)>] [<phase(s)>]

Options:
-am,--also-make If project list is specified,
also build projects required by

`

Activity

  1. added 5 commits that reference this issue on May 3, 2026
  2. added a commit that references this issue on May 5, 2026
  3. added a commit that references this issue on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions