I went ahead to deploy the fix for user to try out
-Dan On Sun, Nov 27, 2016 at 10:48 PM, Dan Tran <dant...@gmail.com> wrote: > I got it working by switching > > componentConfigurator.configureComponent( wagon, plexusConf, > container.getContainerRealm() > ); > > for > > componentConfigurator.configureComponent( wagon, plexusConf, > (ClassRealm)this.getClass().getClassLoader() ); > > Thoughts? > > -Dan > > On Sun, Nov 27, 2016 at 9:34 PM, Dan Tran <dant...@gmail.com> wrote: > >> >> I am interested fixing the long waited issue >> https://issues.apache.org/jira/browse/WAGON-454 ( since introduction of >> Maven 3) >> >> where a wagon user can configure additional wagon provider configuration >> at maven settings >> >> It boils down to this line >> >> https://github.com/mojohaus/wagon-maven-plugin/blob/master/ >> src/main/java/org/codehaus/mojo/wagon/shared/DefaultWagon >> Factory.java#L211 >> >> where plexus not able load the desired class >> >> Caused by: java.lang.ClassNotFoundException: >> org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider >> at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy. >> loadClass(SelfFirstStrategy.java:50) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchroni >> zedLoadClass(ClassRealm.java:271) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> ClassRealm.java:247) >> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass( >> ClassRealm.java:239) >> at org.codehaus.plexus.component.configurator.converters.Abstra >> ctConfigurationConverter.getClassForImplementatio >> nHint(AbstractConfigurationConverter.java:121) >> >> >> Advice is very much appreciated >> >> -Dan >> >> >> >