Package org.apache.ivy.plugins.parser.m2
Class PomReader
java.lang.Object
org.apache.ivy.plugins.parser.m2.PomReader
Provides the method to read some data out of the DOM tree of a pom file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLicense[]
boolean
void
setProperty
(String prop, String val) Add a property if not yet set and value is not null.
-
Constructor Details
-
PomReader
- Throws:
IOException
SAXException
-
-
Method Details
-
hasParent
public boolean hasParent() -
setProperty
Add a property if not yet set and value is not null. This guarantees that property keeps the first value that is put on it and that the properties are never null.- Parameters:
prop
- Stringval
- String
-
getGroupId
-
getParentGroupId
-
getArtifactId
-
getParentArtifactId
-
getVersion
-
getParentVersion
-
getPackaging
-
getHomePage
-
getDescription
-
getLicenses
-
getRelocation
-
getDependencies
-
getDependencyMgt
-
getProfiles
-
getPlugins
-
getPomProperties
- Returns:
- the content of the properties tag into the pom.
-