public final class MavenTestUtils extends Object
pom.xml file of a test's project.| Modifier and Type | Method and Description |
|---|---|
static String |
getMavenProjectVersion(Supplier<File> pomFolderFinder)
Returns the version of the project in the
pom.xml in the folder pointed by pomFolderFinder. |
static String |
getMavenProperty(String property,
Supplier<File> pomFolderFinder)
Returns the value of the property defined or inherited in the
pom.xml in the folder pointed by
pomFolderFinder. |
static Supplier<File> |
mavenPomFinder(Class clazz)
Finds the Maven's pom file corresponding to a given class that is part of a Maven project
|
public static String getMavenProperty(String property, Supplier<File> pomFolderFinder)
pom.xml in the folder pointed by
pomFolderFinder.public static String getMavenProjectVersion(Supplier<File> pomFolderFinder)
pom.xml in the folder pointed by pomFolderFinder.public static Supplier<File> mavenPomFinder(Class clazz)
clazz - class used to locate the pom for the Maven project that the class belongs toCopyright © 2022 MuleSoft, Inc.. All rights reserved.