[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to replace javax.xml.bind in milib



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 <abdelhakim@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?

Kind regards

        Andreas.

[1] https://salsa.debian.org/java-team/milib/blob/master/debian/patches/jaxb.patch

-- 
http://fam-tille.de


Reply to: