maven-wrapper icon indicating copy to clipboard operation
maven-wrapper copied to clipboard

[MWRAPPER-99] Support MAVEN_ARGS environment variable

Open jira-importer opened this issue 2 years ago • 2 comments

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

jira-importer avatar Mar 06 '23 16:03 jira-importer

Slawomir Jaranowski commented

Instead of copy and paste items from Maven distribution script I would prefer to call directly scripts from distribution, like was implemented in: MWRAPPER-61

jira-importer avatar Mar 06 '23 18:03 jira-importer

Since there is an only-script distribution now, this issue can probably be closed.

ppkarwasz avatar Jun 14 '25 15:06 ppkarwasz