Bug#1099298: xml-maven-plugin: FTBFS: [ERROR] /<<PKGBUILDDIR>>/src/test/java/org/codehaus/mojo/xml/test/AbstractXmlMojoTestCase.java:[56, 37] constructor DefaultResourceManager in class org.codehaus.plexus.resource.DefaultResourceManager cannot be applied to given types
Pierre Gruet
pgt at debian.org
Sat Apr 5 14:10:30 BST 2025
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 implementation
SLF4J: 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plexus-resources-1.3.0.patch
Type: text/x-patch
Size: 1320 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20250405/3d41262f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20250405/3d41262f/attachment.sig>
More information about the pkg-java-maintainers
mailing list