File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager
container/container-core/src/main/java/org/talend/sdk/component/container Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .talend .sdk .component .runtime .manager ;
17
17
18
+ import static java .lang .String .format ;
18
19
import static java .util .Arrays .asList ;
19
20
import static java .util .Collections .emptyList ;
20
21
import static java .util .Collections .emptyMap ;
@@ -213,11 +214,14 @@ private static ComponentManager buildNewComponentManager() {
213
214
{
214
215
info ("ComponentManager version: " + ComponentManagerVersion .VERSION );
215
216
info ("Creating the contextual ComponentManager instance " + getIdentifiers ());
216
-
217
- parallelIf (Boolean .getBoolean ("talend.component.manager.plugins.parallel" ),
218
- container .getDefinedNestedPlugin ().stream ().filter (p -> !hasPlugin (p )))
219
- .forEach (this ::addPlugin );
220
- info ("Components: " + availablePlugins ());
217
+ try {
218
+ parallelIf (Boolean .getBoolean ("talend.component.manager.plugins.parallel" ),
219
+ container .getDefinedNestedPlugin ().stream ().filter (p -> !hasPlugin (p )))
220
+ .forEach (this ::addPlugin );
221
+ info ("Components: " + availablePlugins ());
222
+ } catch (Exception e ) {
223
+ info (format ("Error while loading plugin found in plugins.properties: %s." , e .getMessage ()));
224
+ }
221
225
}
222
226
223
227
@ Override
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ public ContainerManager(final DependenciesResolutionConfiguration dependenciesRe
120
120
if (PathFactory .get (System .getProperty ("user.home" )).resolve (".m2/repository" ).equals (rootRepo )) {
121
121
final URL nested = classLoaderConfiguration .getParent ().getResource ("MAVEN-INF/repository" );
122
122
if (nested != null ) {
123
- rootRepo = PathFactory .get (nested .getFile ().replace ("file:" , "" ));
123
+ info ("Nested maven repository: " + nested .getFile ());
124
+ rootRepo = PathFactory .get (nested .getFile ().replaceAll ("^(file|nested):" , "" ));
124
125
}
125
126
}
126
127
this .rootRepositoryLocation = rootRepo ;
You can’t perform that action at this time.
0 commit comments