Problems with DSpace v6.2 Elsevier API integration

51 views
Skip to first unread message

marco castillo

unread,
Jul 30, 2018, 3:18:56 PM7/30/18
to DSpace Technical Support
Hello, we are trying to integrate DSpace v6.2 Elsevier API, but we have problems to compile DSpace.

First, when the patch is applied to the Installation directory, install only part of the files, the rest is in another route.

Second: once the patch installation path was manually corrected, there is a problem with the compilation (mvn clean package):

root@localhost dspace-6.2-release]# mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.dspace.modules:additions:jar:6.2
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.cxf:cxf-rt-rs-client:jar -> duplicate declaration of version 3.0.1 @ line 90, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DSpace Parent Project
[INFO] DSpace Addon Modules
[INFO] DSpace Kernel :: Additions and Local Customizations
[INFO] DSpace XML-UI (Manakin) :: Local Customizations
[INFO] DSpace JSP-UI :: Local Customizations
[INFO] DSpace RDF :: Local Customizations
[INFO] DSpace REST :: Local Customizations
[INFO] DSpace SWORD :: Local Customizations
[INFO] DSpace SWORD v2 :: Local Customizations
[INFO] DSpace SOLR :: Local Customizations
[INFO] DSpace OAI-PMH :: Local Customizations
[INFO] DSpace Assembly and Configuration
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Parent Project 6.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dspace-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ dspace-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ dspace-parent ---
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules 6.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ modules ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ modules ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ modules ---
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Kernel :: Additions and Local Customizations 6.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ additions ---
[INFO] Deleting /home/centos/dspace-6.2-release/dspace/modules/additions/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ additions ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ additions ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ additions ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ additions ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 43 source files to /home/centos/dspace-6.2-release/dspace/modules/additions/target/classes
[INFO] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/importer/external/scidir/UpdateElsevierItems.java: Some input files use or override a deprecated API.
[INFO] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/importer/external/scidir/UpdateElsevierItems.java: Recompile with -Xlint:deprecation for details.
[INFO] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/importer/external/scidir/UpdateElsevierItems.java: Some input files use unchecked or unsafe operations.
[INFO] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/importer/external/scidir/UpdateElsevierItems.java: Recompile with -Xlint:unchecked for details.
[INFO] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/authorize/AuthorizeServiceImpl.java:[647,71] incompatible types: org.dspace.content.DSpaceObject cannot be converted to org.dspace.eperson.EPerson
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Parent Project ............................. SUCCESS [1.082s]
[INFO] DSpace Addon Modules .............................. SUCCESS [0.026s]
[INFO] DSpace Kernel :: Additions and Local Customizations  FAILURE [7.480s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations ............. SKIPPED
[INFO] DSpace RDF :: Local Customizations ................ SKIPPED
[INFO] DSpace REST :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD :: Local Customizations .............. SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ........... SKIPPED
[INFO] DSpace SOLR :: Local Customizations ............... SKIPPED
[INFO] DSpace OAI-PMH :: Local Customizations ............ SKIPPED
[INFO] DSpace Assembly and Configuration ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.203s
[INFO] Finished at: Tue Jul 24 09:08:26 CLT 2018
[INFO] Final Memory: 39M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project additions: Compilation failure
[ERROR] /home/centos/dspace-6.2-release/dspace/modules/additions/src/main/java/org/dspace/authorize/AuthorizeServiceImpl.java:[647,71] incompatible types: org.dspace.content.DSpaceObject cannot be converted to org.dspace.eperson.EPerson
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :additions


Does this patch really work with DSpace v6.x?

Best regards,

Marco Castillo

Fatih Güneş

unread,
Jul 3, 2020, 8:00:33 PM7/3/20
to DSpace Technical Support
Dear Marco,
I am having the same problem. I am using Ds 6.3 on Ubuntu 16.04 with OpenJDK 8.
How did you solve this problem?
Best regards.. 
Reply all
Reply to author
Forward
0 new messages