Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1991521

Summary: maven dependencies will need to be satisfiable by openjdk17 in RHEL 8
Product: Red Hat Enterprise Linux 8 Reporter: Jonathan Dowland <jdowland>
Component: mavenAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: mkoncek, mkyral, redhat, sfroberg
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: maven-3.6-8060020211119162118.5dbfe8be Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2162308 (view as bug list) Environment:
Last Closed: 2022-05-10 13:54:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2162308    

Description Jonathan Dowland 2021-08-09 10:47:03 UTC
Description of problem:

Attempting to install maven via AppStream in RHEL 8.5 (pre-GA) requires either java-1.8.0-openjdk-headless or java-11-openjdk-headless to be installed. We will ship OpenJDK17 in RHEL 8.5 GA and require it to be possible to install Maven and OpenJDK17 without also installing OpenJDK 1.8.0 or 11.

Version-Release number of selected component (if applicable):

3.6.2-6.module+el8.4.0+9250+1786af37

How reproducible:

Always

Steps to Reproduce:
1. microdnf install java-11-openjdk-headless maven
2. rpm -qa java-*

Actual results:

java-11-openjdk-1:11.0.12.0.7-0.el8_4.x86_64
java-11-openjdk-headless-1:11.0.12.0.7-0.el8_4.x86_64
java-17-openjdk-17.0.0.0.26-0.1.ea.el8.x86_64
java-17-openjdk-headless-17.0.0.0.26-0.1.ea.el8.x86_64

Expected results:

java-17-openjdk-17.0.0.0.26-0.1.ea.el8.x86_64
java-17-openjdk-headless-17.0.0.0.26-0.1.ea.el8.x86_64

Additional info:

We have internal test JDK packages now but they are not included in 8.5 yum repos (afaik).

Comment 3 Mikolaj Izdebski 2021-09-24 09:18:36 UTC
Any idea when is java-17-openjdk planned to be available in Fedora rawhide? Per "upstream first" principle I'd prefer to implement this feature in Fedora before RHEL.

Comment 5 Jonathan Dowland 2021-09-24 14:14:41 UTC
> Any idea when is java-17-openjdk planned to be available in Fedora rawhide? Per "upstream first" principle I'd prefer to implement this feature in Fedora before RHEL.

I don't know when the maintainers might be planning to introduce the java-17-openjdk package name to Rawhide, but the java-latest-openjdk packages are now at version 17.0.0.0.35-2. Severin has done a prototype of the same change for prometheus-jmx-exporter in Rawhide: See https://src.fedoraproject.org/rpms/prometheus-jmx-exporter/c/cea26d2fa1b2787953905bcea7cc0cd26e822ff8?branch=rawhide (and https://src.fedoraproject.org/rpms/prometheus-jmx-exporter/c/fea16befdda27bf182c29c694b76c411ca167393?branch=rawhide). I notice that they reference java-17-openjdk (not -latest-).

If you need/want to know if/when java-17-openjdk will land in Rawhide, I'll find an authoratitive person to ask (please needinfo me to request that)

Comment 8 Mikolaj Izdebski 2021-09-25 09:24:04 UTC
Fedora pull request: https://src.fedoraproject.org/rpms/maven/pull-request/28

Comment 20 Marián Konček 2021-11-19 17:10:08 UTC
Pre-verification:
1) fmf tests reviewed and are in order
2) Tests are set as mandatory to pass gating in gating.yaml file
3) Gating tests passed
4) Checked test log files, smoke tests were ran with specified different versions of JDK

Comment 23 errata-xmlrpc 2022-05-10 13:54:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: maven:3.6 security and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1860