Class PomReader

java.lang.Object
org.apache.ivy.plugins.parser.m2.PomReader

public class PomReader extends Object
Provides the method to read some data out of the DOM tree of a pom file.
  • Constructor Details

  • Method Details

    • hasParent

      public boolean hasParent()
    • setProperty

      public void setProperty(String prop, String val)
      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 - String
      val - String
    • getGroupId

      public String getGroupId()
    • getParentGroupId

      public String getParentGroupId()
    • getArtifactId

      public String getArtifactId()
    • getParentArtifactId

      public String getParentArtifactId()
    • getVersion

      public String getVersion()
    • getParentVersion

      public String getParentVersion()
    • getPackaging

      public String getPackaging()
    • getHomePage

      public String getHomePage()
    • getDescription

      public String getDescription()
    • getLicenses

      public License[] getLicenses()
    • getRelocation

      public ModuleRevisionId getRelocation()
    • getDependencies

      public List<PomReader.PomDependencyData> getDependencies()
    • getDependencyMgt

      public List<PomDependencyMgt> getDependencyMgt()
    • getProfiles

      public List<PomReader.PomProfileElement> getProfiles()
    • getPlugins

      public List<PomReader.PomPluginElement> getPlugins()
    • getPomProperties

      public Map<String,String> getPomProperties()
      Returns:
      the content of the properties tag into the pom.