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.IOExceptionpublic 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-2020 Eclipse Foundation. All Rights Reserved.