dspace mirage 2

36 views
Skip to first unread message

Sylvester Chikoti

unread,
Dec 12, 2022, 7:18:33 AM12/12/22
to DSpace Technical Support
I followed git instructions to install dspace with Mirage2 theme on: https://gist.github.com/otuoma/f7fe8dd108709407b9e885e7d32981d4

but it failed to build with error
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize (default) on project xmlui-mirage2: error in executing jruby: loading resource from classloader failed: META-INF/jruby.home/bin/gem -> [Help 1]

the following dependecies are installed:
ruby: 3.1.3
gem: 3.4.0
nvm: 0.33.11
node: 14.15.0
npm: 6.14.8
compass: 1.0.1
sass: 3.4.25
grunt-cli: 1.4.3
grunt : 5.3
bower 1.8.14
i have edited pom file on xmlui-mirage2 to match the installed deps

But when I run mvn package -Dmirage2.on=true -Dmirage2.deps.included=false
it fails to build 

Capture.PNG



administrator@dspace:~/dspace-6.3-release$ mvn package -Dmirage2.on=true
[INFO] Scanning for projects...
[WARNING] The project org.dspace:dspace-parent:pom:6.3 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DSpace Parent Project                                              [pom]
[INFO] DSpace Addon Modules                                               [pom]
[INFO] DSpace Kernel :: Additions and Local Customizations                [jar]
[INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations                [war]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations                    [war]
[INFO] DSpace JSP-UI :: Local Customizations                              [war]
[INFO] DSpace RDF :: Local Customizations                                 [war]
[INFO] DSpace REST :: Local Customizations                                [war]
[INFO] DSpace SWORD :: Local Customizations                               [war]
[INFO] DSpace SWORD v2 :: Local Customizations                            [war]
[INFO] DSpace SOLR :: Local Customizations                                [war]
[INFO] DSpace OAI-PMH :: Local Customizations                             [war]
[INFO] DSpace Assembly and Configuration                                  [pom]
[INFO]
[INFO] ----------------------< org.dspace:dspace-parent >----------------------
[INFO] Building DSpace Parent Project 6.3                                [1/13]
[INFO] --------------------------------[ pom ]---------------------------------
[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] -------------------------< org.dspace:modules >-------------------------
[INFO] Building DSpace Addon Modules 6.3                                 [2/13]
[INFO] --------------------------------[ pom ]---------------------------------
[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] --------------------< org.dspace.modules:additions >--------------------
[INFO] Building DSpace Kernel :: Additions and Local Customizations 6.3  [3/13]
[INFO] --------------------------------[ jar ]---------------------------------
[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] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ additions ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ additions ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ additions ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ additions ---
[INFO]
[INFO] ------------------< org.dspace.modules:xmlui-mirage2 >------------------
[INFO] Building DSpace XML-UI Mirage2 Theme :: Local Customisations 6.3  [4/13]
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for rubygems:sass:gem:3.3.14 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for rubygems:compass:gem:1.0.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[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 ---
[WARNING] Invalid POM for rubygems:sass:gem:3.3.14, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Invalid POM for rubygems:compass:gem:1.0.1, transitive dependencies (if any) will not be available, enable debug logging for more details
[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=/home/administrator/.nvm/versions/node/v14.15.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/administrator/.rvm/bin:/home/administrator/.rvm/bin
     [echo] GEM_PATH=${env.GEM_PATH}
     [echo] GEM_HOME=${env.GEM_HOME}
     [echo] mirage2.deps.included=true
     [echo] grunt.color.scheme=classic_mirage_color_scheme
     [echo] grunt.environment=prod
     [echo] source=/home/administrator/dspace-6.3-release/dspace/modules/xmlui-mirage2/src/main/webapp/themes/
[INFO] Executed tasks
[INFO]
[INFO] --- gem-maven-plugin:1.0.6:initialize (default) @ xmlui-mirage2 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DSpace Parent Project 6.3:
[INFO]
[INFO] DSpace Parent Project .............................. SUCCESS [  0.849 s]
[INFO] DSpace Addon Modules ............................... SUCCESS [  0.037 s]
[INFO] DSpace Kernel :: Additions and Local Customizations  SUCCESS [  3.703 s]
[INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations  FAILURE [  0.808 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:  5.897 s
[INFO] Finished at: 2022-12-12T11:24:47Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize (default) on project xmlui-mirage2: error in executing jruby: loading resource from classloader failed: META-INF/jruby.home/bin/gem -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :xmlui-mirage2

Tim Donohue

unread,
Dec 12, 2022, 11:59:58 AM12/12/22
to DSpace Technical Support
If I can recall correctly, DSpace 6.3 has encountered some major build issues with Mirage 2 as the build process was dependent on very old software.  See this ticket / PR: https://github.com/DSpace/DSpace/pull/8292

Those issues were fixed in DSpace 6.4 which was released this past July.  https://wiki.lyrasis.org/display/DSDOC6x/Release+Notes  (6.4 also fixed a number of security issues in 6.3)

So, if you need to continue to use DSpace 6 + Mirage 2, I'd recommend trying version 6.4.  Or, you could look at an upgrade to DSpace 7 in the future.

Tim
Reply all
Reply to author
Forward
0 new messages