• Bug#1099298: xml-maven-plugin: FTBFS: [ERROR] /<>/src/test

    From Santiago Vila@21:1/5 to All on Sat Mar 1 22:10:11 2025
    Package: src:xml-maven-plugin
    Version: 1.0.1-4
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean
    dh_auto_clean
    bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
    mh_unpatchpoms -plibxml-maven-plugin-java
    debian/rules override_dh_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_clean
    rm -rf src/test/it*/target
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules binary
    dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure
    mh_patchpoms -plibxml-maven-plugin-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
    dh_auto_build
    /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<
    PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -
    Dnotimestamp=true -Dlocale=en_US
    OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] -----------------< org.codehaus.mojo:xml-maven-plugin >----------------- [INFO] Building XML Maven Plugin 1.0.1
    [INFO] from pom.xml
    [INFO] ----------------------------[ maven-plugin ]---------------------------- [WARNING] The artifact org.apache.maven.plugins:maven-surefire-plugin:jar:2.17 has been relocated to org.apache.maven.plugins:maven-surefire-plugin:jar:2.22.3
    [WARNING] The artifact org.apache.maven.plugins:maven-jar-plugin:jar:3.1.2 has been relocated to org.apache.maven.plugins:maven-jar-plugin:jar:3.3.0
    [INFO]
    [INFO] --- resources:3.3.1:resources (default-resources) @ xml-maven-plugin --- [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources [INFO]
    [INFO] --- compiler:3.13.0:compile (default-compile) @ xml-maven-plugin --- [INFO] Recompiling the module because of changed source code.
    [INFO] Compiling 13 source files with javac [debug target 1.8] to target/classes
    [WARNING] bootstrap class path not set in conjunction with -source 8
    [WARNING] source value 8 is obsolete and will be removed in a future release [WARNING] target value 8 is obsolete and will be removed in a future release [WARNING] To suppress warnings about obsolete options, use -Xlint:-options. [INFO] Annotation processing is enabled because one or more processors were found
    on the class path. A future release of javac may disable annotation processing
    unless at least one processor is specified by name (-processor), or a search
    path is specified (--processor-path, --processor-module-path), or annotation
    processing is enabled explicitly (-proc:only, -proc:full).
    Use -Xlint:-options to suppress this message.
    Use -proc:none to disable annotation processing.
    [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/xml/AbstractXmlMojo.java: Some input files use or override a deprecated API.
    [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/xml/AbstractXmlMojo.java: Recompile with -Xlint:deprecation for details.
    [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/xml/AbstractXmlMojo.java: Some input files use unchecked or unsafe operations.
    [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/xml/AbstractXmlMojo.java: Recompile with -Xlint:unchecked for details.
    [INFO]
    [INFO] --- plugin:3.10.2:descriptor (default-descriptor) @ xml-maven-plugin --- [WARNING]

    Some dependencies of Maven Plugins are expected to be in provided scope.
    Please make sure that dependencies listed below declared in POM
    have set '<scope>provided</scope>' as well.

    The following dependencies are in wrong scope:
    * org.apache.maven:maven-plugin-api:jar:3.x:compile
    * org.apache.maven:maven-model:jar:3.x:compile
    * org.apache.maven:maven-artifact:jar:3.x:compile
    * org.apache.maven:maven-core:jar:3.x:compile
    * org.apache.maven:maven-settings:jar:3.x:compile
    * org.apache.maven:maven-settings-builder:jar:3.x:compile
    * org.apache.maven:maven-builder-support:jar:3.x:compile
    * org.apache.maven:maven-repository-metadata:jar:3.x:compile
    * org.apache.maven:maven-model-builder:jar:3.x:compile
    * org.apache.maven:maven-resolver-provider:jar:3.x:compile



    [INFO] Using 'UTF-8' encoding to read mojo source files.
    [WARNING] Unresolvable link in javadoc tag with value FormatFileSet#getDefault(String, int) found in src/main/java/org/codehaus/mojo/xml/CheckFormatMojo.java:133: Could not resolve javadoc reference JavadocReference [moduleName=Optional.empty,
    packageNameClassName=Optional[FormatFileSet], member=Optional[getDefault(String, int)], label=Optional.empty]
    [INFO] java-annotations mojo extractor found 3 mojo descriptors.
    [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
    [INFO] ant mojo extractor found 0 mojo descriptor.
    [INFO] bsh mojo extractor found 0 mojo descriptor.
    [INFO]
    [INFO] --- plugin:3.10.2:helpmojo (default-descriptor) @ xml-maven-plugin --- [INFO]
    [INFO] --- resources:3.3.1:testResources (default-testResources) @ xml-maven-plugin ---
    [INFO] Copying 2 resources from src/test/resources to target/test-classes [INFO]
    [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ xml-maven-plugin ---
    [INFO] Recompiling the module because of changed dependency.
    [INFO] Compiling 3 source files with javac [debug target 1.8] to target/test-classes
    [INFO] Annotation processing is enabled because one or more processors were found
    on the class path. A future release of javac may disable annotation processing
    unless at least one processor is specified by name (-processor), or a search
    path is specified (--processor-path, --processor-module-path), or annotation
    processing is enabled explicitly (-proc:only, -proc:full).
    Use -Xlint:-options to suppress this message.
    Use -proc:none to disable annotation processing.
    [INFO] -------------------------------------------------------------
    [WARNING] COMPILATION WARNING :
    [INFO] -------------------------------------------------------------
    [WARNING] bootstrap class path not set in conjunction with -source 8
    [WARNING] source value 8 is obsolete and will be removed in a future release [WARNING] target value 8 is obsolete and will be removed in a future release [WARNING] To suppress warnings about obsolete options, use -Xlint:-options. [INFO] 4 warnings
    [INFO] -------------------------------------------------------------
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [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;
    required: java.util.Map<java.lang.String,org.codehaus.plexus.resource.loader.ResourceLoader>
    found: no arguments
    reason: actual and formal argument lists differ in length
    [INFO] 1 error
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.551 s
    [INFO] Finished at: 2025-03-01T13:58:03Z
    [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project xml-maven-plugin: Compilation failure
    [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;
    [ERROR] required: java.util.Map<java.lang.String,org.codehaus.plexus.resource.loader.ResourceLoader>
    [ERROR] found: no arguments
    [ERROR] reason: actual and formal argument lists differ in length
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -
    Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode
    package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1 make: *** [debian/rules:4: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:xml-maven-plugin, so that this is still visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tony mancill@21:1/5 to All on Mon Apr 7 21:20:01 2025
    On Sat, Apr 05, 2025 at 07:47:50PM +0200, Julien Plissonneau Duquène wrote:
    Hi Pierre,

    Le 2025-04-05 15:10, Pierre Gruet a écrit :

    I have unfortunately no clue to fix it... or we could revert the
    version of plexus-resources.

    In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099226#10 tony
    mancill said that he was working on upgrading the xml-maven-plugin.

    Yes, but I haven't made meaningful progress on this. I am also
    wondering if we should either revert to the previous revision or
    backport the API changes.

    (Apologies for the delay - quite a bit going on IRL for me at the
    moment.)

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmf0ItgACgkQIdIFiZdL PpbPDg/+LRB0Zn0LSC1Sk6yFyHMnsAMDqA8Qc7dTob39Gm+1xR477o6R71eDi8cE +ISOU/vGow7n8iFW/DoMIYpwg6E0efQgcYhhSoxpIuN5ePkz//Xy5Sho8slysCnO DhgNgyBG3Sn7vjEDWnkMhnJY4a1+cBD/5p6NfT6GgtRQzUlQZOnJOEXedivdO5Lq uXM5yisEHhmo3J73zQIK3+DArMYIXH00QYmIID6nAObpg+TjSDwAO9llnFTtYamW 9cWYAdvs8IIWxdV0+5sABDZ4nv3XSLkf5YY4rCq6H4xg0RWqwq7ElL9zEAqvddFV 9UtPRXUlq1QPKWeJhLZuPsHAuou3Po1+9Unoku0t470fOKjp5xgXzqmnub6asJst IKFLRehS/3KbCsxTcG/62LXpJMN5oxQ8gvvqfx+xaHLIETBRyapVlFzvV5taWtsg G5hL6TjQKHQ57CpFrnSMkKPNKtxdUhs3hHLy4ort563u0BeR1QjBuyxzR4WpaptP lefnFww54rkHji7Az7F5w41+JGf6RD/Rbe+hGcWWOl2ZP4x8Wg5wFN7HYFldWEzh L/jKtd72jY9jjdbAWG2RQwN+03cmk/Y1/t2pwC0FXoLA4NTKsIZlL4z3XhFir9V6 hadnJaa6MutYrXV629lMIUCu5XevBaaGP7BFtxwjeRW21CisD6o=
    =Fdvk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_Plissonneau_Duqu=C@21:1/5 to All on Sat Apr 12 11:20:01 2025
    Hi toni,

    Le 2025-04-07 21:09, tony mancill a écrit :

    Yes, but I haven't made meaningful progress on this. I am also
    wondering if we should either revert to the previous revision or
    backport the API changes.

    I'm going to give this update (or eventually backport) a try as part of
    the Vienna BSP.

    (Apologies for the delay - quite a bit going on IRL for me at the
    moment.)

    NP things happen, that was just a FI message.

    Best regards,

    --
    Julien Plissonneau Duquène

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Apr 12 17:40:01 2025
    Processing control commands:

    reassign 1099298 src:plexus-resources
    Bug #1099298 [src:xml-maven-plugin] 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
    Bug #1099226 [src:xml-maven-plugin] epubcheck: FTBFS: No implementation for ResourceManager was bound.
    Bug #1099231 [src:xml-maven-plugin] fop: FTBFS: No implementation for ResourceManager was bound.
    Bug reassigned from package 'src:xml-maven-plugin' to 'src:plexus-resources'. Bug reassigned from package 'src:xml-maven-plugin' to 'src:plexus-resources'. Bug reassigned from package 'src:xml-maven-plugin' to 'src:plexus-resources'. No longer marked as found in versions xml-maven-plugin/1.0.1-4.
    No longer marked as found in versions xml-maven-plugin/1.0.1-4.
    No longer marked as found in versions xml-maven-plugin/1.0.1-4.
    Ignoring request to alter fixed versions of bug #1099298 to the same values previously set
    Ignoring request to alter fixed versions of bug #1099226 to the same values previously set
    Ignoring request to alter fixed versions of bug #1099231 to the same values previously set
    affects 1099298 + src:xml-maven-plugin
    Bug #1099298 [src:plexus-resources] 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
    Bug #1099226 [src:plexus-resources] epubcheck: FTBFS: No implementation for ResourceManager was bound.
    Bug #1099231 [src:plexus-resources] fop: FTBFS: No implementation for ResourceManager was bound.
    Added indication that 1099298 affects src:xml-maven-plugin
    Added indication that 1099226 affects src:xml-maven-plugin
    Added indication that 1099231 affects src:xml-maven-plugin

    --
    1099226: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099226
    1099231: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099231
    1099298: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099298
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Apr 12 20:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Sat, 12 Apr 2025 20:06:57 +0200
    with message-id <57135f75-5c0a-491e-bc97-706f9f56baf9@debian.org>
    and subject line Closing: last upload of plexus-resources fixed the issue
    has caused the Debian Bug report #1099298,
    regarding 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
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1099298: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099298
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 1 Mar 2025 21:03:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.6 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,
    X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 45; hammy, 150; neutral, 460; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto, 0.000-+--H*F:U*sanvila Return-path: <sanvila@debian.org>
    Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52