Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Fix Version/s: 3.0
-
Component/s: None
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
I reported MNG-4811 and it was fixed for 3.0-RC2 but introduced a new error. The source for com.espn.maven.plugins.espnservice.IncludeProjectDependenciesComponentConfigurator is attached to MNG-4811. The exception I'm seeing is below:
Caused by: java.lang.NoSuchMethodError: org.codehaus.plexus.component.configurator.converters.special.ClassRealmConverter.<init>(Lorg/codehaus/classworlds/ClassRealm;)V
at com.espn.maven.plugins.espnservice.IncludeProjectDependenciesComponentConfigurator.configureComponent(IncludeProjectDependenciesComponentConfigurator.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent(AbstractComponentConfigurator.java:90)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:505)
... 22 more
Another side note about your converter or any other custom converter you write: You very likely don't need the following line for your mojo:
converterLookup.registerConverter(new ClassRealmConverter(containerRealm));In the basic converter, it exists only for backward-compat and I'm not aware of any valid use case that requires it.