I have a script on Jenkins CI which optionally does dependency:go-offline. The other option should be to do nothing. But I can't put "" in there - it must be a goal.
So - which one would you pick? It should:
I was thinking of some help:... goal but those tend to have a lot of output. Any better?
You can use this goal and option:
mvn --quiet help:help
the -q
,--quiet
option causes the output to only show errors.
Note that Jenkins allows you to add options like --quiet
as diplayed in the usage: mvn [options] [<goal(s)>]
. You configure these in the Jenkins job’s “Goals and options” field.
Check mvn --help
output for further information.
I know this is an old question, but I came across it when I had the same requirement and it's still unanswered, so I'm posting for anyone who needs it in future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With