Compilation Failure

23 views
Skip to first unread message

Glenn G

unread,
Jun 28, 2019, 9:47:14 AM6/28/19
to DSpace Technical Support
I'm trying to install DSpace 6.3 on an Amazon Linux server (kernel 4.14) running Tomcat 7.  Following step 7 in the instructions, where I enter "mvn package -Dmirage2.on=true", the build fails with the error messages below.  Can anyone suggest a fix?

[ERROR] 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] /ebs/dspace-source/dspace-6.3-release/dspace-api/src/main/java/org/dspace/content/Community.java:[27,32] package org.apache.logging.log4j does not exist
[ERROR] /ebs/dspace-source/dspace-6.3-release/dspace-api/src/main/java/org/dspace/content/Community.java:[55,26] cannot find symbol
[ERROR]   symbol:   class Logger
[ERROR]   location: class org.dspace.content.Community

Yassir Elnaw

unread,
Feb 5, 2020, 9:03:52 AM2/5/20
to DSpace Technical Support
 I initially encountered the same error while I installed DSpace too. But a big thanks to Mahesh Palamuttath who bailed me out.
To solve this problem you just need to follow this step.

STEP 1.
Execute the command below
update-alternatives --config java

STEP 2.
Kindly select openjdk-8 as default

The second one will be openjdk-8

STEP 3.
Then re-run maven using
mvn -U package

Your Build will become successful.

Best regards.
Reply all
Reply to author
Forward
0 new messages