Bug#775987: maven: Maven depends on openjdk exclusively
Package: maven Version: 3.0.5-2 Severity: minor Dear Java Maintainer, I noticed that the maven package in jessie depends on {default-jre|java5-runtime}[-headless]. Which results in openjdk-7-jre being pulled in even if an alternative JRE/JDK is installed. In my case the JDK installed is oracle-java7-jdk (using make-jpkg from java-package). The ant package (also in jessie) doesn't exhibit this problem because it also depends on java7-runtime-headless (which is provided by oracle-java7-jdk). Although both will still install openjdk if oracle-java8-{jdk,jre} is installed. My suggestion would be to have both maven and ant depends on the virtual package java-runtime-headless, since this is provided by all JREs and JDKs including the once created by make-jpkg. Sincererly, Laurens -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages maven depends on: ii default-jre [java5-runtime] 2:1.7-52 ii default-jre-headless [java5-runtime-headless]2:1.7-52 ii libaether-java 1.13.1-2 ii libcommons-cli-java 1.2-3 ii libcommons-codec-java1.9-1 ii libcommons-httpclient-java 3.1-10.2 ii libcommons-logging-java 1.2-1 ii libguava-java17.0-1 ii libplexus-cipher-java1.5-4 ii libplexus-classworlds2-java 2.5.2-1 ii libplexus-containers1.5-java 1.5.5-6 ii libplexus-interpolation-java 1.19-1 ii libplexus-sec-dispatcher-java1.3.1-6 ii libplexus-utils2-java3.0.15-1 ii libsisu-guice-java 3.2.4-1 ii libsisu-ioc-java 2.3.0-5 ii libwagon2-java 2.7-1 ii openjdk-7-jre [java5-runtime]7u71-2.5.3-2 ii openjdk-7-jre-headless [java5-runtime-headless] 7u71-2.5.3-2 ii oracle-java7-jdk [java5-runtime-headless]7u71 maven recommends no packages. maven suggests no packages. -- no debconf information __ This is the maintainer address of Debian's Java team http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. Please use debian-j...@lists.debian.org for discussions and questions.
Bug#775987: maven: Maven depends on openjdk exclusively
Hi Emanual, You're right. The problem only occurs with Java 8 not 7. If I modify make-jpkg to also include release-3 the problem is resolved. The way make-jpkg determines which virtual packages is provides is currently hard-coded for Java 7, so there is also a problem for Java 6 (java4-runtime will be provided) as well as for any version beyond 9. What would you like me to do? Close this issue create a new one on java-package? Move this issue (how?)? How about the ant package, it depends also on java{6,7}-runtime, which is not wrong, but not necessary either, is that also a separate bug? Laurens On 22-1-2015 13:50, Emmanuel Bourg wrote: Hi Laurens, Thank you for the report. I think this is actually an issue with java-package. The package generated by make-jpkg provides javan-runtime[-headless] with n covering the last 3 versions. So for Java 8 it provides java{6,7,8}-runtime but not java5-runtime as required by maven. We should modify make-jpkg and provide all runtimes since Java 5. Emmanuel Bourg __ This is the maintainer address of Debian's Java team http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. Please use debian-j...@lists.debian.org for discussions and questions.