Skip to content

Commit e37982a

Browse files
authored
Document MVN_CMD as an alternative to MVN_CMD_DIR and mvnw
1 parent dc3191c commit e37982a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FAQ.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ NOTE: Since version 3.0.3
2020

2121
Since the version 1.14 of the Docker Pipeline plugin, `withMaven` requires to
2222

23-
* Either prepend the `MVN_CMD_DIR` environment variable to the `PATH` environment variable in every `sh` step that invokes `mvn` (e.g. `sh 'export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy`).
23+
* Either prepend the `MVN_CMD_DIR` environment variable to the `PATH` environment variable in every `sh` step that invokes `mvn` (e.g. `sh 'export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy'`).
24+
* Or call the generated script directly via `MVN_CMD` (e.g. `sh '$MVN_CMD clean deploy'`)
2425
* Or use Takari's Maven Wrapper (e.g. `sh './mvnw clean deploy'`)
2526

2627
If omitted, the Maven settings file and Mven global settings file will not be injected in the Maven execution.

0 commit comments

Comments
 (0)