Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-103977

Default maven-install-plugin dependencies cause issues

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • CentOS Stream 10
    • javapackages-tools
    • None
    • None
    • None
    • rhel-base-utils-antfarm
    • None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      We are building some rpm to contain multiple jar's. So we don't have to go trough dependency hell 
      The code can be found here: https://github.com/oVirt/ovirt-build-dependencies

       

      Now this works fine on CentOS 9, but seems to be broken on CentOS 10.
      The build of the rpm fails with:

      Traceback (most recent call last):
            File "/usr/lib/rpm/osgi.prov", line 77, in <module>
              builder = TagBuilder()
                        ^^^^^^^^^^^^
            File "/usr/lib/rpm/osgi.prov", line 50, in __init__
              cache = OSGiCache(rpmconf)
                      ^^^^^^^^^^^^^^^^^^
            File "/usr/lib/python3.12/site-packages/javapackages/cache/osgi.py", line 52, in __init__
              self._cache = self._process_buildroot()
                            ^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/usr/lib/python3.12/site-packages/javapackages/cache/osgi.py", line 78, in _process_buildroot
              bundle = OSGiBundle.from_manifest(path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/usr/lib/python3.12/site-packages/javapackages/common/osgi.py", line 132, in from_manifest
              manifest = Manifest(path)
                         ^^^^^^^^^^^^^^
            File "/usr/lib/python3.12/site-packages/javapackages/common/manifest.py", line 48, in __init__
              self._manifest = self._read_manifest()
                               ^^^^^^^^^^^^^^^^^^^^^
            File "/usr/lib/python3.12/site-packages/javapackages/common/manifest.py", line 70, in _read_manifest
              return content.decode("utf-8")
                     ^^^^^^^^^^^^^^^^^^^^^^^
          UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 1767: invalid continuation byte
      

      Now after some debugging I found out that this is caused by the MANIFEST of org.apache.maven.resolver:maven-resolver-api:jar:1.9.18

      This version gets included by the default maven-install-plugin which is 3.1.2 on maven-3.9.9-1.el10.

      I don't know what the best option would be to resolve this?
      Either fix the handling in javapackages that it's a soft failure. Or for example depend on maven-install-plugin 3.1.4 in maven.

              mizdebsk@redhat.com Mikolaj Izdebski
              jean-louis_dupond Jean-Louis Dupond (Inactive)
              Mikolaj Izdebski Mikolaj Izdebski
              Jakub Heger Jakub Heger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: