Class MavenUtils
java.lang.Object
com.atlassian.bamboo.plugins.maven.task.MavenUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringgetMavenVersion(File mavenExecutable) Parse output of "mvn --version".
-
Method Details
-
getMavenVersion
Parse output of "mvn --version". This method works only with Maven 2 and Maven 3- Parameters:
mavenExecutable- maven executable- Returns:
- text representation of Maven version number or null if not possible to obtain version number
-