Description of problem: Ant has as a dependency of OpenJDK even if you have Javas JDK installed. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Download and install JDK from Java 2. Run a 'yum install ant' 3. OpenJDK will be added as a dependency Actual results: Expected results: Ant should be able to use any version of JDK and not have OpenJDK as a dependency when a compatible version of Java is present on the machine. Additional info: Installing multiple versions of JDK is redundant and can lead to security vulnerabilities in a highly controlled environment.
That is a proper RPM Requiries: for the package, having OpenJDK installed from RHEL will keep it updated with security fixes.