Package org.eclipse.rdf4j.common.io
Class MavenUtil
java.lang.Object
org.eclipse.rdf4j.common.io.MavenUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
MavenUtil
public MavenUtil()
-
-
Method Details
-
loadPomProperties
Loads the Maven pom.properties for the specified artifact.- Parameters:
groupId
- The artifact's group ID.artifactId
- The artifact's ID.- Returns:
- The parsed pom properties, or null if the resource could not be found.
- Throws:
IOException
-
loadVersion
Loads the version number from the pom.properties file for the specified artifact.- Parameters:
groupId
- The artifact's group ID.artifactId
- The artifact's ID.defaultVersion
- The version number to return in case no version number was found.- Returns:
- version as a string
-