public class MavenUtil extends Object
Constructor and Description |
---|
MavenUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
loadPomProperties(String groupId,
String artifactId)
Loads the Maven pom.properties for the specified artifact.
|
static String |
loadVersion(String groupId,
String artifactId,
String defaultVersion)
Loads the version number from the pom.properties file for the specified artifact.
|
public static Properties loadPomProperties(String groupId, String artifactId) throws IOException
groupId
- The artifact's group ID.artifactId
- The artifact's ID.IOException
public static String loadVersion(String groupId, String artifactId, String defaultVersion)
groupId
- The artifact's group ID.artifactId
- The artifact's ID.defaultVersion
- The version number to return in case no version number was found.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.