Class MavenUtils

java.lang.Object
com.atlassian.bamboo.plugins.maven.task.MavenUtils

public class MavenUtils extends Object
  • Method Details

    • 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