system/src/sc/repos/mvn/MvnRepositoryManager.java
private String collectDependencies(RepositorySource src, DependencyContext ctx, DependencyCollection deps) {
      MvnRepositoryPackage pkg = (MvnRepositoryPackage) src.pkg;

      ArrayList<RepositoryPackage> depPackages = src.pkg.dependencies;
      if (depPackages == null) {
         String err = initDependencies(src, ctx);
         if (err != null)
            return err;
         depPackages = src.pkg.dependencies;
      }

      /*
      if (depPackages != null) {
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Installing dependencies for: " + pkg.packageName);
         for (RepositoryPackage depPkg:depPackages) {
            system.installPackage(depPkg, DependencyContext.child(ctx, pkg));
         }
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Done installing dependencies for: " + pkg.packageName);
      }
      */
      if (depPackages != null) {
         for (RepositoryPackage depPkg:depPackages) {
            deps.addDependency(depPkg, DependencyContext.child(ctx, pkg));
         }
      }
      return null;
   }
// Need to install the dependencies after all of them have been collected.  That's so that the sources array gets sorted properly.
Need to install the dependencies after all of them have been collected.  That's so that the sources array gets sorted properly.
Need to install the dependencies after all of them have been collected . That ' s so that the sources array gets sorted properly .
private String collectDependencies(RepositorySource src, DependencyContext ctx, DependencyCollection deps) {
      MvnRepositoryPackage pkg = (MvnRepositoryPackage) src.pkg;
      ArrayList<RepositoryPackage> depPackages = src.pkg.dependencies;
      if (depPackages == null) {
         String err = initDependencies(src, ctx);
         if (err != null)
            return err;
         depPackages = src.pkg.dependencies;
      }
      /*
      if (depPackages != null) {
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Installing dependencies for: " + pkg.packageName);
         for (RepositoryPackage depPkg:depPackages) {
            system.installPackage(depPkg, DependencyContext.child(ctx, pkg));
         }
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Done installing dependencies for: " + pkg.packageName);
      }
      */
      if (depPackages != null) {
         for (RepositoryPackage depPkg:depPackages) {
            deps.addDependency(depPkg, DependencyContext.child(ctx, pkg));
         }
      }
      return null;
   }
private String collectDependencies ( RepositorySource src , DependencyContext ctx , DependencyCollection deps ) { MvnRepositoryPackage pkg = ( MvnRepositoryPackage ) src . pkg ; ArrayList < RepositoryPackage > depPackages = src . pkg . dependencies ; if ( depPackages == null ) { String err = initDependencies ( src , ctx ) ; if ( err != null ) return err ; depPackages = src . pkg . dependencies ; } /*
      if (depPackages != null) {
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Installing dependencies for: " + pkg.packageName);
         for (RepositoryPackage depPkg:depPackages) {
            system.installPackage(depPkg, DependencyContext.child(ctx, pkg));
         }
         info(StringUtil.indent(DependencyContext.val(ctx)) + "Done installing dependencies for: " + pkg.packageName);
      }
      */ if ( depPackages != null ) { for ( RepositoryPackage depPkg : depPackages ) { deps . addDependency ( depPkg , DependencyContext . child ( ctx , pkg ) ) ; } } return null ; }
Need to install the dependencies after all of them have been collected.
Need to install the dependencies after all of them have been collected .