public class MavenArtifactProperties extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId() |
String |
getGroupId() |
static MavenArtifactProperties |
getInstance(String groupId,
String artifactId)
Returns a MavenArtifactProperties for the Maven artifact with the specified group id and artifact id.
|
static MavenArtifactProperties |
getInstance(String groupId,
String artifactId,
ClassLoader classLoader)
Returns a MavenArtifactProperties for the Maven artifact with the specified group id and artifact id.
|
String |
getProperty(String propName) |
Set<String> |
getPropertyNames() |
String |
getVersion() |
public String getGroupId()
public String getArtifactId()
public String getVersion()
@NotNull public static MavenArtifactProperties getInstance(String groupId, String artifactId) throws MavenArtifactNotFoundException
groupId - the group id of the Maven artifactartifactId - the artifact id of the Maven artifactMavenArtifactNotFoundException - if a pom.properties file for the artifact could not be found in the context
class loader or in our class loader@NotNull public static MavenArtifactProperties getInstance(String groupId, String artifactId, ClassLoader classLoader) throws MavenArtifactNotFoundException
groupId - the group id of the Maven artifactartifactId - the artifact id of the Maven artifactclassLoader - the class loader in which to look for the artifactMavenArtifactNotFoundException - if a pom.properties file for the artifact could not be found in the
specified class loaderCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.