Bug#841197: libhibernate3-java: FTBFS (Plugin org.apache.maven.plugins:maven-enforcer-plugin:1.4.1 or one of its dependencies could not be resolved)

Markus Koschany apo at debian.org
Tue Oct 18 15:31:59 UTC 2016


On 18.10.2016 15:02, Santiago Vila wrote:
> Package: src:libhibernate3-java
> Version: 3.6.10.Final-5
> Severity: serious
> 
> Dear maintainer:
> 
> I tried to build this package in stretch with "dpkg-buildpackage -A"
> (which is what the "Arch: all" autobuilder would do to build it)
> but it failed:
[...]-
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 0.980 s
> [INFO] Finished at: 2016-10-18T14:29:33+02:00
> [INFO] Final Memory: 8M/28M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Plugin org.apache.maven.plugins:maven-enforcer-plugin:1.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4.1: 1 problem was encountered while building the effective model for org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
> [ERROR] [ERROR] 'dependencies.dependency.version' for org.apache.maven.plugin-tools:maven-plugin-annotations:jar is missing. @
> [ERROR] -> [Help 1]
[...]

I think I have found the fix for this issue and the bug appears to be in
maven-enforcer. The new version of maven-enforcer introduced a new
dependency (scope: provided) on maven-plugin-annotations but it does not
declare a specific version. If I apply the attached patch for
maven-enforcer, libhibernate3-java builds fine again. However I'm not
sure if this an upstream bug in maven-enforcer or some mystical Maven
bug or something else.

Any thoughts before I go ahead and apply this patch?

Regards,

Markus



-------------- next part --------------
A non-text attachment was scrubbed...
Name: maven-plugin-tools-dependency-version.patch
Type: text/x-diff
Size: 642 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161018/1ae818a1/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161018/1ae818a1/attachment.sig>


More information about the pkg-java-maintainers mailing list