mavenrepo.py
def resolveCoord (self, coord):
    """ Resolve coordinate so it has group, artifact and version numbers

    Returns a valid MavenCoord object or None if it could not figure out
    a valid version.
    """
    coord = MavenCoord (coord)
    if coord.version:
      return coord
      
    newCoord = self._versionDb.find (coord)
    if newCoord:
      return newCoord

    # finally, let's download latest version from metadata file
    metadataUrl = self.getMetadataUrlFor (coord)
    metadataString = self._download2string (metadataUrl)
    if not metadataString:
      # raise Exception ("Cannot find out the coord version for: %s" % coord.id)
      return None

    obj = xmltodict.parse (metadataString)

    # get latest release version
    metadata = obj.get ('metadata', {})    
    versioning = metadata.get ('versioning', {})
    lastReleaseVersion = versioning.get ('release', None)

    if not lastReleaseVersion:
      return None

    coord.version = lastReleaseVersion
    return coord
 Resolve coordinate so it has group, artifact and version numbers

    Returns a valid MavenCoord object or None if it could not figure out
    a valid version.
    
Resolve coordinate so it has group, artifact and version numbers
Returns a valid MavenCoord object or None if it could not figure out
a valid version.
Resolve coordinate so it has group artifact and version numbers Returns a valid MavenCoord object or None if it could not figure out a valid version .
def resolveCoord (self, coord):
    coord = MavenCoord (coord)
    if coord.version:
      return coord
    newCoord = self._versionDb.find (coord)
    if newCoord:
      return newCoord
    metadataUrl = self.getMetadataUrlFor (coord)
    metadataString = self._download2string (metadataUrl)
    if not metadataString:
      return None
    obj = xmltodict.parse (metadataString)
    metadata = obj.get ('metadata', {})    
    versioning = metadata.get ('versioning', {})
    lastReleaseVersion = versioning.get ('release', None)
    if not lastReleaseVersion:
      return None
    coord.version = lastReleaseVersion
    return coord
def resolveCoord ( self , coord ) : coord = MavenCoord ( coord ) if coord . version : return coord newCoord = self . _versionDb . find ( coord ) if newCoord : return newCoord metadataUrl = self . getMetadataUrlFor ( coord ) metadataString = self . _download2string ( metadataUrl ) if not metadataString : return None obj = xmltodict . parse ( metadataString ) metadata = obj . get ( 'metadata' , { } ) versioning = metadata . get ( 'versioning' , { } ) lastReleaseVersion = versioning . get ( 'release' , None ) if not lastReleaseVersion : return None coord . version = lastReleaseVersion return coord
Resolve coordinate so it has group, artifact and version numbers
Returns a valid MavenCoord object or None if it could not figure out
a valid version.
Resolve coordinate so it has group artifact and version numbers Returns a valid MavenCoord object or None if it could not figure out a valid version .
""" Resolve coordinate so it has group, artifact and version numbers

    Returns a valid MavenCoord object or None if it could not figure out
    a valid version.
    """ # finally, let's download latest version from metadata file # raise Exception ("Cannot find out the coord version for: %s" % coord.id) # get latest release version
self
coord