Class MavenUtils
- java.lang.Object
-
- com.atlassian.bamboo.plugins.maven.task.MavenUtils
-
public class MavenUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MavenUtils.MavenVersionMatcher
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
getMavenVersion(File mavenExecutable)
Parse output of "mvn --version".
-
-
-
Method Detail
-
getMavenVersion
@Nullable public static @Nullable String getMavenVersion(File mavenExecutable)
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
-
-