Hello all,
I am trying to create a WAR file in
Maven, but the build stops with the following:
[INFO] Building DSpace XML-UI Mirage2 Theme :: Local Customisations 6.3 [4/13]
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ xmlui-mirage2 ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ xmlui-mirage2 ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) @ xmlui-mirage2 ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks
main:
[echo] PATH=/usr/bin/maven/bin:/usr/bin/maven/bin:/usr/bin/maven/bin:/usr/bin/maven/bin:/usr/bin/maven/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[echo] GEM_PATH=/usr/lib/ruby/gems/2.3.0
[echo] GEM_HOME=/usr/bin
[echo] mirage2.deps.included=true
[echo] grunt.color.scheme=classic_mirage_color_scheme
[echo] grunt.environment=prod
[echo] source=/opt/dspace/dspace/modules/xmlui-mirage2/src/main/webapp/themes/
[INFO] Executed tasks
[INFO]
[INFO] --- gem-maven-plugin:1.0.6:initialize (default) @ xmlui-mirage2 ---
[WARNING] ERROR: Error installing /home/dspace/.m2/repository/rubygems/rb-inotify/0.10.1/rb-inotify-0.10.1.gem:
[WARNING] rb-inotify requires Ruby version >= 2.2.
[WARNING] ERROR: Error installing /home/dspace/.m2/repository/rubygems/ffi/1.13.1/ffi-1.13.1.gem:
[WARNING] ffi requires Ruby version >= 2.3.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO]
[INFO] DSpace Parent Project .............................. SUCCESS [ 1.410 s]
[INFO] DSpace Addon Modules ............................... SUCCESS [ 0.048 s]
[INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 6.112 s]
[INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations FAILURE [ 18.103 s]
[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: 26.525 s
[INFO] Finished at: 2020-09-29T22:16:45+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize (default) on project xmlui-mirage2: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize failed:
Java returned: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize (default) on project xmlui-mirage2: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize failed: Java returned: 1
The problem is that my Ruby version is 2.3.3:
dspace@dstest:/opt/dspace$ ruby -v
ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
What am I doing wrong? Did I set GEM_HOME and GEM_PATH incorrectly?