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

neither java-17-openjdk-headless or 1.8.0 provide java-headless virtual package

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • None
    • rhel-sst-java
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      The issue I am trying to resolve is being able to install Maven with JDK8 and not pull in another JDK.

      The maven-openjdk8 package has the following dependency chain:

      maven-openjdk8 -> maven -> maven-lib -> (java-headless or java-11-headless)

      However only java-11-openjdk-headless provides "java-headless", so this is only satisfied by JDK11. Hence, installing maven-openjdk8 (or maven-openjdk17) installs JDK11 as well.

      I'm filing this against openjdk because ultimately I think this can only be resolved by the OpenJDK packages providing a consistent virtual package name across JDK versions.

      The specific OpenJDK 8 package version I have reproduced this with is:

      Epoch : 1
      Version : 1.8.0.322.b06
      Release : 9.el9

              rhn-engineering-ahughes Andrew Hughes
              jdowland@redhat.com Jonathan Dowland
              Andrew Hughes Andrew Hughes
              David Kutalek David Kutalek
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: