Bug#809736: maven-debian-helper: Does not recognize interval dependencies like junit [4.8, )

Erich Schubert erich at debian.org
Sun Jan 3 14:51:21 UTC 2016


Package: maven-debian-helper
Version: 2.0.1
Severity: normal

Maven 3 allows specifying minimum and maximum version dependencies.
For example, it is possible to specify a junit dependency "[4.8,)" as
"4.8 and later".

maven-debian-helper does not appear to understand this syntax:
---
Resolving junit:junit:jar:[4.8,) of scope test...
[check dependency with bundle type]
> dpkg --search /usr/share/maven-repo/junit/junit/*/*
Found /usr/share/maven-repo/junit/junit/4.x/junit-4.x.pom in junit4
Found /usr/share/maven-repo/junit/junit/3.8.2/junit-3.8.2.pom in junit
Found /usr/share/maven-repo/junit/junit/3.x/junit-3.x.pom in junit
Found /usr/share/maven-repo/junit/junit/4.12/junit-4.12.pom in junit4
> dpkg --status junit4
[error] Package junit4 (4.12) is already installed and contains a
possible match,
but I cannot resolve library junit:junit:jar:[4.8,) in it.
[error] Please check manually that the library is up to date,
otherwise it may be necessary to package version [4.8,) in Debian.
Try again to resolve the dependency?
[Y/n] >
---
Clearly, 4.12 can satisfy the [4.8,) requirement.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (99, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages maven-debian-helper depends on:
ii  default-jdk                     2:1.8-53
ii  libmaven-clean-plugin-java      2.5-1
ii  libmaven-compiler-plugin-java   3.2-5
ii  libmaven-jar-plugin-java        2.4-1
ii  libmaven-resources-plugin-java  2.6-1
ii  libmaven-site-plugin-java       2.1-3
ii  libplexus-velocity-java         1.1.8-1
ii  libsurefire-java                2.17-2
ii  libxml2-utils                   2.9.3+dfsg1-1
ii  maven                           3.3.9-3
ii  maven-repo-helper               1.8.12
ii  unzip                           6.0-20
ii  velocity                        1.7-4

maven-debian-helper recommends no packages.

Versions of packages maven-debian-helper suggests:
ii  apt-file                      2.5.4
ii  devscripts                    2.15.10
ii  libmaven-javadoc-plugin-java  2.10.3-2
ii  subversion                    1.9.3-1+b1

-- no debconf information



More information about the pkg-java-maintainers mailing list