Hi, This issue showed up after plexus-resources 1.3.0 got uploaded to unstable.
I applied the enclosed patch but then another error filed in the way: ---------------------------------8<------------------------------------------ [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.codehaus.mojo.xml.test.ValidateMojoTest SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 3.116 s <<< FAILURE! - in org.codehaus.mojo.xml.test.ValidateMojoTest [ERROR] testIt1(org.codehaus.mojo.xml.test.ValidateMojoTest) Time elapsed: 2.066 s <<< ERROR! org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) No implementation for ResourceManager was bound.
while locating ValidateMojo
at ClassRealm[plexus.core, parent: null]
\_ installed by: WireModule -> PlexusBindingModule
while locating Mojo annotated with
@Named("org.codehaus.mojo:xml-maven-plugin:1.0.1:validate")
1 error
======================
Full classname legend:
======================
Mojo: "org.apache.maven.plugin.Mojo"
Named: "com.google.inject.name.Named"
PlexusBindingModule: "org.eclipse.sisu.plexus.PlexusBindingModule"
ResourceManager: "org.codehaus.plexus.resource.ResourceManager"
ValidateMojo: "org.codehaus.mojo.xml.ValidateMojo"
WireModule: "org.eclipse.sisu.wire.WireModule"
========================
End of classname legend:
========================
role: org.apache.maven.plugin.Mojo
roleHint: org.codehaus.mojo:xml-maven-plugin:1.0.1:validate
at
org.codehaus.mojo.xml.test.ValidateMojoTest.testIt1(ValidateMojoTest.java:39)
Caused by: com.google.inject.ProvisionException:
Unable to provision, see the following errors:
1) No implementation for ResourceManager was bound.
while locating ValidateMojo
at ClassRealm[plexus.core, parent: null]
\_ installed by: WireModule -> PlexusBindingModule
while locating Mojo annotated with
@Named("org.codehaus.mojo:xml-maven-plugin:1.0.1:validate")
1 error and so on... ---------------------------------8<------------------------------------------I have unfortunately no clue to fix it... or we could revert the version of plexus-resources.
Cheers, -- Pierre
--- a/src/test/java/org/codehaus/mojo/xml/test/AbstractXmlMojoTestCase.java
+++ b/src/test/java/org/codehaus/mojo/xml/test/AbstractXmlMojoTestCase.java
@@ -53,9 +53,6 @@
AbstractXmlMojo vm = (AbstractXmlMojo) lookupMojo( getGoal(), testPom );
setVariableValueToObject( vm, "basedir", new File( getBasedir(), pDir ) );
final Log log = new SilentLog();
- DefaultResourceManager rm = new DefaultResourceManager();
- setVariableValueToObject( rm, "logger", log );
- setVariableValueToObject( vm, "locator", rm );
final Map<String, ResourceLoader> resourceLoaders = new HashMap<String, ResourceLoader>();
resourceLoaders.put( "file", new FileResourceLoader() );
resourceLoaders.put( "jar", new JarResourceLoader() );
@@ -63,7 +60,9 @@
URLResourceLoader url = new URLResourceLoader();
setVariableValueToObject( url, "logger", log );
resourceLoaders.put( "url", url );
- setVariableValueToObject( rm, "resourceLoaders", resourceLoaders );
+ DefaultResourceManager rm = new DefaultResourceManager(resourceLoaders);
+ setVariableValueToObject( rm, "logger", log );
+ setVariableValueToObject( vm, "locator", rm );
final Build build = new Build();
build.setDirectory( "target" );
OpenPGP_signature.asc
Description: OpenPGP digital signature
__ This is the maintainer address of Debian's Java team <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.
