public class MavenUtils extends Object
| Constructor and Description |
|---|
MavenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMavenHome()
Retrieves the Maven home directory.
|
static boolean |
ignoreConnectorDependencies(org.apache.maven.project.MavenProject project)
Checks the project runtime version and decides
whether to pack connector dependencies or not
|
static void |
setupInvoker(org.apache.maven.shared.invoker.Invoker invoker,
String projectPath)
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(org.apache.maven.shared.invoker.Invoker invoker,
String projectPath)
throws org.apache.maven.plugin.MojoExecutionException
projectPath - The project directory.invoker - The Maven Invoker to set up.org.apache.maven.plugin.MojoExecutionExceptionpublic static boolean ignoreConnectorDependencies(org.apache.maven.project.MavenProject project)
project - Maven projectCopyright © 2025 WSO2. All rights reserved.