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

Santiago Vila sanvila at debian.org
Wed Oct 19 13:13:04 UTC 2016


Package: src:openjpa
Version: 2.4.0-3
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 --parallel --buildsystem=maven
   dh_testdir -i -O--parallel -O--buildsystem=maven
   dh_update_autotools_config -i -O--parallel -O--buildsystem=maven
   dh_auto_configure -i -O--parallel -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 -plibopenjpa-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- install
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US

[... snipped ...]

[INFO] Replacing /<<PKGBUILDDIR>>/openjpa/target/openjpa-2.4.0.jar with /<<PKGBUILDDIR>>/openjpa/target/openjpa-2.4.0-shaded.jar
[INFO] Dependency-reduced POM written at: /<<PKGBUILDDIR>>/openjpa/dependency-reduced-pom.xml
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ openjpa ---
[INFO] Installing /<<PKGBUILDDIR>>/openjpa/target/openjpa-2.4.0.jar to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa/2.4.0/openjpa-2.4.0.jar
[INFO] Installing /<<PKGBUILDDIR>>/openjpa/dependency-reduced-pom.xml to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa/2.4.0/openjpa-2.4.0.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.4:install (default-install) @ openjpa ---
[INFO] Writing OBR metadata
[INFO] Installing org/apache/openjpa/openjpa/2.4.0/openjpa-2.4.0.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenJPA Parent POM 2.4.0
[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] Reactor Summary:
[INFO] 
[INFO] OpenJPA Utilities Library .......................... SUCCESS [  8.801 s]
[INFO] OpenJPA Kernel ..................................... SUCCESS [ 12.904 s]
[INFO] OpenJPA JDBC ....................................... SUCCESS [  7.667 s]
[INFO] OpenJPA Persistence ................................ SUCCESS [  4.218 s]
[INFO] OpenJPA Persistence JDBC ........................... SUCCESS [  1.028 s]
[INFO] OpenJPA XML Store .................................. SUCCESS [  0.481 s]
[INFO] OpenJPA Slice ...................................... SUCCESS [  0.709 s]
[INFO] OpenJPA JEST ....................................... SUCCESS [  0.609 s]
[INFO] OpenJPA Aggregate Jar .............................. SUCCESS [  6.807 s]
[INFO] OpenJPA Parent POM ................................. FAILURE [  0.007 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.824 s
[INFO] Finished at: 2016-10-19T13:58:12+02:00
[INFO] Final Memory: 53M/161M
[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 solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
debian/rules:7: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:4: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The relevant part of the build log is included above.

For a full build log, I've just triggered rebuilds for both testing and unstable
in reproducible builds, so they will show here in short:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/openjpa.html

Note: This seems to be very similar to Bug #841197 in libhibernate3-java,
which I see in the BTS web pages it has been already diagnosed by Markus.

Thanks.



More information about the pkg-java-maintainers mailing list