This is of course a more general RPM / yum question, but I suspect that the Java use case is a recurring one, as many of us are currently upgrading from 1.8 to 11. ![]() Is there some way (configuration, yum option, alternative, etc.) to make OpenJDK 11 satisfying this dependency?Ĭould the new modules / app stream approach of CentOS 8 help here? ‘java-devel’ without explicitly specifying a version. Looking at the spec file, I understand that the ‘maven’ package requires An approach would be to install Maven manually, but it feels better to use the provided package. If one then installs ‘java-11-openjdk-devel’, and use the update-alternatives command for java and javac, everything works fine and Maven uses Java 11 for the build.īut I would like to avoid shipping OpenJDK 1.8 with the image, since it would uselessly double its size. When installing ‘maven’ with yum, ‘java-1.8.0-openjdk-devel’ is installed as a dependency. Install Apache Maven in CentOS 7 Next, go to the official Apache Maven download page and grab the latest version or use the following wget command to download it under the maven home directory ‘/usr/local/src’. I am trying to create a container image which will build Java software with Maven and Java 11 (rather focussing on CentOS 8 here).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |