Questions tagged [maven-help-plugin]

Use this tag for questions related to the Maven Help Plugin.

4 questions
3
votes
0 answers

How to speed up maven-help-plugin:evaluate?

I'm using maven-help-plugin one-liner to grab the project version in a bash script: currentVersion=`mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout` It runs in a few seconds locally but…
Sloloem
  • 1,587
  • 2
  • 15
  • 37
3
votes
0 answers

Get version of specific plugin via Maven help plugin's goal evaluate

Is there a way to use mvn help:evaluate -Dexpression to get the version number of a specific plugin? The compiler plugin for example?
Oliver
  • 3,815
  • 8
  • 35
  • 63
2
votes
0 answers

How to chain multiple properties in an expression using maven help:evaluate?

Context: I am trying to chain multiple maven properties (connected with a '-') in the same expression to be outputted to the command line using a single line command (this will be a command to be executed in a Jenkins pipeline). I believe I should…
klerb
  • 21
  • 1
1
vote
1 answer

maven-help-plugin:evaluate with 'project.groupId' expression give back 'org.apache.maven' instead of 'com.myproject' without error code

I would like use maven-help-plugin:3.2.0:evaluate to grab information from my pom project, but the result was not what I expected. Please read the edit at the end! I try to use it after checkout an existing git branch. Usually it works on most…