mavenparser.py
def parseString (pomString):
  """ Parses a pom.xml string and returns a Maven object
  """
  maven = Maven()

  obj = xmltodict.parse (pomString)

  # get project as a dict
  project = obj.get ('project', {})

  maven.parent = _parseParent (project)

  # parse coord (taking into account inheritance)
  maven.coord = MavenCoord (project)
  if not maven.coord.group:
    maven.coord.group = maven.parent.group

  if not maven.coord.version:
    maven.coord.version = maven.parent.version

  maven.deps = _parseDependencies (project, maven.coord)
  maven.depsManagement = _parseDependencyManagement (project, maven.coord)  
  maven.properties = _parseProperties (project)
  maven.profiles = _parseProfiles (project, maven.coord)

  return maven
 Parses a pom.xml string and returns a Maven object
  
Parses a pom.xml string and returns a Maven object
Parses a pom . xml string and returns a Maven object
def parseString (pomString):
  maven = Maven()
  obj = xmltodict.parse (pomString)
  project = obj.get ('project', {})
  maven.parent = _parseParent (project)
  maven.coord = MavenCoord (project)
  if not maven.coord.group:
    maven.coord.group = maven.parent.group
  if not maven.coord.version:
    maven.coord.version = maven.parent.version
  maven.deps = _parseDependencies (project, maven.coord)
  maven.depsManagement = _parseDependencyManagement (project, maven.coord)  
  maven.properties = _parseProperties (project)
  maven.profiles = _parseProfiles (project, maven.coord)
  return maven
def parseString ( pomString ) : maven = Maven ( ) obj = xmltodict . parse ( pomString ) project = obj . get ( 'project' , { } ) maven . parent = _parseParent ( project ) maven . coord = MavenCoord ( project ) if not maven . coord . group : maven . coord . group = maven . parent . group if not maven . coord . version : maven . coord . version = maven . parent . version maven . deps = _parseDependencies ( project , maven . coord ) maven . depsManagement = _parseDependencyManagement ( project , maven . coord ) maven . properties = _parseProperties ( project ) maven . profiles = _parseProfiles ( project , maven . coord ) return maven
Parses a pom.xml string and returns a Maven object
Parses a pom . xml string and returns a Maven object
""" Parses a pom.xml string and returns a Maven object
  """ # get project as a dict # parse coord (taking into account inheritance)
pomString