public class MavenUtils extends Object
| Constructor and Description |
|---|
MavenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMavenHome()
Retrieves the Maven home directory.
|
static void |
setupInvoker(String mavenHome,
org.apache.maven.shared.invoker.Invoker invoker)
Sets up the Maven Invoker with the specified Maven home directory.
|
public static String getMavenHome() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if an error occurs while determining the Maven home directory.public static void setupInvoker(String mavenHome, org.apache.maven.shared.invoker.Invoker invoker)
mavenHome - The path to the Maven home directory.invoker - The Maven Invoker to set up.Copyright © 2025 WSO2. All rights reserved.