Revision: 19665
          http://sourceforge.net/p/gate/code/19665
Author:   markagreenwood
Date:     2016-10-10 16:46:07 +0000 (Mon, 10 Oct 2016)
Log Message:
-----------
make sure we use all the custom repos for the collect request as well, which 
should fix the issue Richard has

Modified Paths:
--------------
    gate/branches/sawdust2/gate-core/src/main/java/gate/Plugin.java

Modified: gate/branches/sawdust2/gate-core/src/main/java/gate/Plugin.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/main/java/gate/Plugin.java     
2016-10-10 11:07:00 UTC (rev 19664)
+++ gate/branches/sawdust2/gate-core/src/main/java/gate/Plugin.java     
2016-10-10 16:46:07 UTC (rev 19665)
@@ -560,14 +560,24 @@
       CollectRequest collectRequest = new CollectRequest();
       collectRequest.setRoot(dependency);
       collectRequest.addRepository(central);
-      //TODO don't we need repos from settings.xml in here as well?
+      for(String profileName : effectiveSettings.getActiveProfiles()) {
+        Profile profile = profilesMap.get(profileName);
+        List<Repository> repositories = profile.getRepositories();
+        for(Repository repo : repositories) {
+          RemoteRepository remoteRepo =
+                  new RemoteRepository.Builder(repo.getId(), "default",
+                          repo.getUrl()).build();
+          collectRequest.addRepository(remoteRepo);
+        }
+      }
+
       DependencyNode node =
               repoSystem.collectDependencies(repoSession,
                       collectRequest).getRoot();
 
       DependencyRequest dependencyRequest = new DependencyRequest();
       dependencyRequest.setRoot(node);
-
+      
       DependencyResult result =
               repoSystem.resolveDependencies(repoSession,
                       dependencyRequest);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to