When I am doing quality analysis on projects, one of the things I like to use is the real version of the project in Sonar.
How to extract it from maven projects?
mvn -q -Dexec.executable=echo -Dexec.args=‘${project.version}’ --non-recursive exec:exec
If your pom.xml has something like
1 2 3 |
<groupId>your.group</groupId> ... <version>1.0.0-SNAPSHOT</version> |
You should see:
1.0.0-SNAPSHOT