Re: How to replace javax.xml.bind in milib
Hi Tony,
On Sat, Jan 26, 2019 at 10:52:46AM -0800, tony mancill wrote:
> On Sat, Jan 26, 2019 at 11:11:36AM +0100, Andreas Tille wrote:
> > [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?
>
> 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:
Hmmm, the Build-Depends was set in the build creating the error above.
> /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.
I added this but there must be another trick to get the package built.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: