コード例 #1
0
 protected Installation findProcessInstallation(String id) {
   List<Installation> installations = processManager.listInstallations();
   for (Installation installation : installations) {
     String name = installation.getName();
     if (Objects.equal(id, name)) {
       return installation;
     }
   }
   return null;
 }
コード例 #2
0
 @Override
 public DependencyTree collectDependencyTree(
     boolean offline, Filter<Dependency> excludeDependencyFilter)
     throws RepositoryException, IOException {
   if (rootTree == null) {
     PomDetails details = resolvePomDetails();
     Objects.notNull(details, "pomDetails");
     try {
       rootTree =
           getResolver()
               .collectDependencies(details, offline, excludeDependencyFilter)
               .getTree();
     } catch (IOException e) {
       logFailure(e);
       throw e;
     } catch (RepositoryException e) {
       logFailure(e);
       throw e;
     }
   }
   return rootTree;
 }