public class MavenUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOG_SEPARATOR |
| Constructor and Description |
|---|
MavenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkProLicense(String liquibaseProLicenseKey,
String commandName,
org.apache.maven.plugin.logging.Log log) |
static ClassLoader |
getArtifactClassloader(org.apache.maven.project.MavenProject project,
boolean includeArtifact,
boolean includeTestOutputDirectory,
Class clazz,
org.apache.maven.plugin.logging.Log log,
boolean verbose)
Obtains a
ClassLoader that can load from the Maven project dependencies. |
static Field |
getDeclaredField(Class<?> clazz,
String keyPropertyName)
Recursively searches for the field specified by the fieldName in the class and all
the super classes until it either finds it, or runs out of parents.
|
public static final String LOG_SEPARATOR
public static ClassLoader getArtifactClassloader(org.apache.maven.project.MavenProject project, boolean includeArtifact, boolean includeTestOutputDirectory, Class clazz, org.apache.maven.plugin.logging.Log log, boolean verbose) throws MalformedURLException
ClassLoader that can load from the Maven project dependencies. If
the dependencies have not be resolved (or there are none) then this will just end up
delegating to the parent ClassLoader of this class.MalformedURLException - If any of the dependencies cannot be resolved
into a URL.public static boolean checkProLicense(String liquibaseProLicenseKey, String commandName, org.apache.maven.plugin.logging.Log log)
public static Field getDeclaredField(Class<?> clazz, String keyPropertyName) throws NoSuchFieldException
clazz - The Class to start searching from.keyPropertyName - The name of the field to retrieve.Field identified by the field name.NoSuchFieldException - If the field was not found in the class or any of its
super classes.Copyright © 2022 Liquibase.org. All rights reserved.