Created
November 6, 2015 20:59
-
-
Save jwliechty/5afef1815ea6ee3cefb2 to your computer and use it in GitHub Desktop.
Get maven version of a project via command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -Dexpression=project.artifactId -f '/path/to/pom.xml' 2>/dev/null | grep -Ev '^(\[|Download\w+:)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment