Skip to content

[MWRAPPER-99] Support MAVEN_ARGS environment variable #250

@jira-importer

Description

@jira-importer

Piotr Karwasz opened MWRAPPER-99 and commented

Starting with Maven 3.9.0 the mvn/mvn.cmd scripts support a MAVEN_ARGS environment variable that can be used to pass additional arguments to Maven (cf. documentation).

The (undocumented?) MAVEN_CONFIG variable plays the same role in the mvnw/mvnw.cmd scripts.

Maven Wrapper should probably switch to MAVEN_ARGS as variable name (maintaining backward compatibility).


Affects: 3.1.1

Issue Links:

  • MWRAPPER-61 let mvnw call mvn directly, without maven-wrapper.jar

  • MWRAPPER-125 Make "only-script" the default wrapper

  • MWRAPPER-45 Migrate/Sync startup scripts with Maven 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions