Skip to content

Commit

Permalink
Improve docs on new mavenExecute api (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe authored May 11, 2020
1 parent 04da130 commit b512301
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions documentation/docs/steps/mavenExecute.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ None
```groovy
mavenExecute script: this, goals: ['clean', 'install']
```

Example for the correct usage of `goals`, `defines` and `flags` in version `v1.24.0` and newer:

```groovy
mavenExecute(
script: script,
goals: ['org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate'],
defines: ["-Dexpression=$pomPathExpression", "-DforceStdout", "-q"],
returnStdout: true
)
```

Note that it does not work to put multiple arguments into one element of a list, so `defines: ["-Dexpression=$pomPathExpression -DforceStdout -q"]` does **not** work.

0 comments on commit b512301

Please sign in to comment.