maven-wrapper
maven-wrapper copied to clipboard
[MWRAPPER-99] Support MAVEN_ARGS environment variable
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
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
Since there is an only-script distribution now, this issue can probably be closed.