Package io.micronaut.maven
Class MojoUtils
java.lang.Object
io.micronaut.maven.MojoUtils
Utility methods for different mojos.
-
Method Summary
Modifier and TypeMethodDescriptioncomputeNativeImageArgs
(List<String> nativeImageBuildArgs, String baseImageRun, String argsFile) static String
findJavaExecutable
(org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession) static boolean
hasMicronautMavenPlugin
(org.apache.maven.project.MavenProject project) Checks if the project has the Micronaut Maven plugin defined.
-
Method Details
-
findJavaExecutable
public static String findJavaExecutable(org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession) -
computeNativeImageArgs
-
hasMicronautMavenPlugin
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
-