javax.xml.bind does not exist

2,649 views
Skip to first unread message

Jonathon Paarlberg

unread,
Aug 1, 2019, 3:35:42 AM8/1/19
to DSpace Community
Hi, all.


I try to run step 8, part ii; the code is "mvn -U package". However, I get an error saying:

BUILD FAILURE...Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project dspace-api: Compilation failure: Compilation failure:
[ERROR] /dspace/dspace-6.3-src-release/dspace-api/src/main/java/org/dspace/authority/orcid/xml/Converter.java:[13,22] package javax.xml.bind does not exist
...

After doing some GIMF research, I see that I might need to edit my pom.xml file or enable javax.xml.bind at runtime, but I really don't find exactly how to accomplish that.

Any help you can offer will be greatly appreciated.

Thank you.

Mark H. Wood

unread,
Aug 1, 2019, 9:21:05 AM8/1/19
to DSpace Community
On Wed, Jul 31, 2019 at 06:26:55PM -0700, Jonathon Paarlberg wrote:
> Hi, all.
>
> I am trying to follow the tutorial at
> https://listechsavvy.blogspot.com/2017/12/installation-of-dspace-62-on-ubuntu-1604.html
>
> I try to run step 8, part ii; the code is "mvn -U package". However, I get
> an error saying:
>
> BUILD FAILURE...Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
> (default-compile) on project dspace-api: Compilation failure: Compilation
> failure:
> [ERROR]
> /dspace/dspace-6.3-src-release/dspace-api/src/main/java/org/dspace/authority/orcid/xml/Converter.java:[13,22]
> package javax.xml.bind does not exist
> ...

It looks as though you may be trying to build with Java 9, 10, or 11:

https://www.jesperdj.com/2018/09/30/jaxb-on-java-9-10-11-and-beyond/

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Leonardo Guerrero

unread,
Aug 1, 2019, 9:24:29 AM8/1/19
to DSpace Community
I don't have an answer for you, but if any tutorial makes you to execute "sudo chmod -R 777 /dspace_build" on all the proyect folder. don't trust it. Look for oficial documentation.
Reply all
Reply to author
Forward
0 new messages