On Sat, Jan 26, 2019 at 11:11:36AM +0100, Andreas Tille wrote: > Hi Tony, > > On Fri, Jan 25, 2019 at 08:23:55PM -0800, tony mancill wrote: > > I recently patched the jhove package for a similar issue, > > ... > > --- /dev/null > > +++ b/debian/patches/jhove_javax.patch > > @@ -0,0 +1,22 @@ > > +Description: Add javax.xml.bind as a dependency > > + java.xml.bind is removed since Java 10 and is now available as an > > + external library. > > +Author: Abdelhakim Qbaich <abdelha...@qbaich.com> > > +Bug-Debian: https://bugs.debian.org/917482 > > +Bug: https://github.com/openpreserve/jhove/pull/381 > > +Last-Update: 2019-01-19 > > + > > +--- jhove-1.20.1.orig/jhove-modules/pom.xml > > ++++ jhove-1.20.1/jhove-modules/pom.xml > > +@@ -23,6 +23,11 @@ > > + <version>${project.version}</version> > > + </dependency> > > + <dependency> > > ++ <groupId>javax.xml.bind</groupId> > > ++ <artifactId>jaxb-api</artifactId> > > ++ <version>2.3.1</version> > > ++ </dependency> > > ++ <dependency> > > + <groupId>junit</groupId> > > + <artifactId>junit</artifactId> > > + </dependency> > > Thanks for the hint. I tried to implement this[1] but the issue > remains: > > [WARNING] The POM for javax.xml.bind:jaxb-runtime:jar:debian is missing, no > dependency information available > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.408 s > [INFO] Finished at: 2019-01-26T09:56:14Z > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project milib: Could not resolve > dependencies for project com.milaboratory:milib:jar:1.9: The following > artifacts could not be resolved: javax.xml.bind:jaxb-core:jar:debian, > javax.xml.bind:jaxb-runtime:jar:debian: Cannot access central > (https://repo.maven.apache.org/maven2) in offline mode and the artifact > javax.xml.bind:jaxb-core:jar:debian has not been downloaded from it before. > -> [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/DependencyResolutionException > > > Am I missing something?
Hi Andreas, Based on that error message, the build system is trying to find the jaxb-core and jaxb-runtime JARs locally (since the Debian toolchain doesn't allow it pull things from the Internet - this is why all of these builds "just work" outside of the Debian context). Therefore, you should add libjaxb-java as a build-dep, which will add the following JARs to the local maven repo during the build: /usr/share/java/jaxb-core.jar /usr/share/java/jaxb-jxc-jdk9.jar /usr/share/java/jaxb-jxc.jar /usr/share/java/jaxb-runtime.jar /usr/share/java/jaxb-xjc-jdk9.jar /usr/share/java/jaxb-xjc.jar /usr/share/java/jaxb-impl.jar You might also want to include libjaxb-java as a dependency of your binary package. Cheers, tony
signature.asc
Description: PGP signature