Class MavenUtils


  • public class MavenUtils
    extends Object
    • 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