Class MojoUtils

java.lang.Object
io.micronaut.maven.MojoUtils

public final class MojoUtils extends Object
Utility methods for different mojos.
  • Method Details

    • findJavaExecutable

      public static String findJavaExecutable(org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession)
    • computeNativeImageArgs

      public static List<String> computeNativeImageArgs(List<String> nativeImageBuildArgs, String baseImageRun, String argsFile)
    • hasMicronautMavenPlugin

      public static boolean hasMicronautMavenPlugin(org.apache.maven.project.MavenProject project)
      Checks if the project has the Micronaut Maven plugin defined.
      Parameters:
      project - the Maven project
      Returns:
      true if the project has the Micronaut Maven plugin defined