mavenrepo.py
def downloadArtifacts (self, coord, scope):
    """ Resolves all dependencies for given coord and downloads all artifacts
    """
    if isinstance(coord, list):
      result = []
      for c in coord:
        result.extend (self.downloadArtifacts (c, scope))
      return result

    mavenObj = self.fetchResolvedTree (coord, scope)
    if not mavenObj:
      return []

    result = []
    for coord in [MavenCoord(coord)] + mavenObj.deps.getFlattenCoords():
      normCoord = self._versionDb.findOrRegister (coord)
      if normCoord.version and coord.version:
        if mavenvercmp.compare (coord.version, normCoord.version) > 0:
          print (
            "WARNING: it seems you are downloading an outdated version (update your version DB):\n"
            "  - proposal: %s\n" 
            "  -    using: %s" % (coord, normCoord)
          )

      downloadUrl = self.getJarUrlFor (normCoord)
      destJarPath = self.downloadUrl (downloadUrl)
      result.append (destJarPath)
    return result
 Resolves all dependencies for given coord and downloads all artifacts
    
Resolves all dependencies for given coord and downloads all artifacts
Resolves all dependencies for given coord and downloads all artifacts
def downloadArtifacts (self, coord, scope):
    if isinstance(coord, list):
      result = []
      for c in coord:
        result.extend (self.downloadArtifacts (c, scope))
      return result
    mavenObj = self.fetchResolvedTree (coord, scope)
    if not mavenObj:
      return []
    result = []
    for coord in [MavenCoord(coord)] + mavenObj.deps.getFlattenCoords():
      normCoord = self._versionDb.findOrRegister (coord)
      if normCoord.version and coord.version:
        if mavenvercmp.compare (coord.version, normCoord.version) > 0:
          print (
            "WARNING: it seems you are downloading an outdated version (update your version DB):\n"
            "  - proposal: %s\n" 
            "  -    using: %s" % (coord, normCoord)
          )
      downloadUrl = self.getJarUrlFor (normCoord)
      destJarPath = self.downloadUrl (downloadUrl)
      result.append (destJarPath)
    return result
def downloadArtifacts ( self , coord , scope ) : if isinstance ( coord , list ) : result = [ ] for c in coord : result . extend ( self . downloadArtifacts ( c , scope ) ) return result mavenObj = self . fetchResolvedTree ( coord , scope ) if not mavenObj : return [ ] result = [ ] for coord in [ MavenCoord ( coord ) ] + mavenObj . deps . getFlattenCoords ( ) : normCoord = self . _versionDb . findOrRegister ( coord ) if normCoord . version and coord . version : if mavenvercmp . compare ( coord . version , normCoord . version ) > 0 : print ( "WARNING: it seems you are downloading an outdated version (update your version DB):\n" "  - proposal: %s\n" "  -    using: %s" % ( coord , normCoord ) ) downloadUrl = self . getJarUrlFor ( normCoord ) destJarPath = self . downloadUrl ( downloadUrl ) result . append ( destJarPath ) return result
Resolves all dependencies for given coord and downloads all artifacts
Resolves all dependencies for given coord and downloads all artifacts
""" Resolves all dependencies for given coord and downloads all artifacts
    """
self
coord
scope