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)
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 From: Markus KoschanyDate: Tue, 18 Oct 2016 17:11:00 +0200 Subject: maven-plugin-tools dependency version --- maven-enforcer-plugin/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/maven-enforcer-plugin/pom.xml b/maven-enforcer-plugin/pom.xml index 7dbab66..d89f44f 100644 --- a/maven-enforcer-plugin/pom.xml +++ b/maven-enforcer-plugin/pom.xml @@ -84,6 +84,7 @@ org.apache.maven.plugin-tools maven-plugin-annotations provided + 3.3 org.mockito signature.asc Description: OpenPGP digital signature
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)
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: [...] debian/rules build-indep dh build-indep --buildsystem=maven dh_testdir -i -O--buildsystem=maven dh_update_autotools_config -i -O--buildsystem=maven dh_auto_configure -i -O--buildsystem=maven find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar': No such file or directory find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar': No such file or directory find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar': No such file or directory mh_patchpoms -plibhibernate3-java --debian-build --keep-pom-version --maven-repo=/<>/debian/maven-repo debian/rules override_dh_auto_build make[1]: Entering directory '/<>' rm -Rf debian/maven-repo/org/hibernate/hibernate rm -Rf debian/maven-repo/org/hibernate/hibernate-parent [... snipped ...] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 has not been downloaded from it before. [WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.3 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-site-plugin:jar:3.3 has not been downloaded from it before. [INFO] [INFO] [INFO] Building Hibernate Core Parent POM 3.6.10.Final [INFO] [WARNING] The POM for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] [INFO] Skipping Hibernate Core Aggregator [INFO] This project has been banned from the build due to previous failures. [INFO] [INFO] [INFO] Reactor Summary: [INFO] [INFO] Hibernate Core Parent POM .. FAILURE [ 0.010 s] [INFO] Hibernate Core . SKIPPED [INFO] Hibernate Testing .. SKIPPED [INFO] Hibernate Testsuite SKIPPED [INFO] Hibernate Ehcache Integration .. SKIPPED [INFO] Hibernate OSCache Integration .. SKIPPED [INFO] Hibernate SwarmCache Integration ... SKIPPED [INFO] Hibernate C3P0 ConnectionProvider .. SKIPPED [INFO] Hibernate Proxool ConnectionProvider ... SKIPPED [INFO] Hibernate JDBC3-JdbcSupport Testing SKIPPED [INFO] Hibernate Entity Manager ... SKIPPED [INFO] Hibernate JDBC4-JdbcSupport Testing SKIPPED [INFO] Hibernate Core Aggregator .. SKIPPED [INFO] [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] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible