Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2749

Mirage2 can't be built in a Windows environment

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Answered
    • Affects Version/s: 5.3
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
    • Environment:
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      In Description

      Description

      When I enable the Mirage2 theme in the Maven build as follows:

      mvn clean package -Ddb.name=oracle -Dmirage2.on=true

      I get the following error when comes the time to build the Mirage2 Local Customizations. According to the following stack trace, it's the "initialize" goal of the gem-maven-plugin that fails.

      The behaviour is the same both from a command line and from Eclipse.

      [WARNING] NameError: method 'to_yaml' not defined in Object
      [WARNING] remove_method at org/jruby/RubyModule.java:2344
      [WARNING] (eval) at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:47
      [WARNING] module_eval at org/jruby/RubyModule.java:2316
      [WARNING] yamler= at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:43
      [WARNING] (root) at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/1.9/yaml.rb:82
      [WARNING] require at org/jruby/RubyKernel.java:1065
      [WARNING] (root) at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
      [WARNING] require at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
      [WARNING] load_yaml at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems.rb:659
      [WARNING] load_file at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/config_file.rb:327
      [WARNING] initialize at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/config_file.rb:196
      [WARNING] do_configuration at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/gem_runner.rb:74
      [WARNING] run at file:/C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/gem_runner.rb:39
      [WARNING] load at org/jruby/RubyKernel.java:1081
      [WARNING] (root) at file:C:/bibl/projets/!m2/org/jruby/jruby-complete/1.7.12/jruby-complete-1.7.12.jar!/META-INF/jruby.home/bin/jgem:21
      [WARNING] load at org/jruby/RubyKernel.java:1081
      [WARNING] (root) at -e:1
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] DSpace Parent Project .............................. SUCCESS [ 4.250 s]
      [INFO] DSpace Services Framework :: API and Implementation SUCCESS [ 10.765 s]
      [INFO] DSpace Kernel :: API and Implementation ............ SUCCESS [ 41.626 s]
      [INFO] DSpace Addon Modules ............................... SUCCESS [ 0.109 s]
      [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 0.812 s]
      [INFO] DSpace XML-UI (Manakin) ............................ SUCCESS [01:17 min]
      [INFO] DSpace XML-UI Mirage2 Theme ........................ SUCCESS [ 5.376 s]
      [INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations FAILURE [03:09 min]
      [INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
      [INFO] DSpace JSP-UI ...................................... SKIPPED
      [INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED
      [INFO] DSpace RDF ......................................... SKIPPED
      [INFO] DSpace RDF :: Local Customizations ................. SKIPPED
      [INFO] DSpace REST :: API and Implementation .............. SKIPPED
      [INFO] DSpace REST :: Local Customizations ................ SKIPPED
      [INFO] DSpace SWORD ....................................... SKIPPED
      [INFO] DSpace SWORD :: Local Customizations ............... SKIPPED
      [INFO] DSpace SWORD v2 .................................... SKIPPED
      [INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED
      [INFO] Apache Solr Webapp ................................. SKIPPED
      [INFO] DSpace SOLR :: Local Customizations ................ SKIPPED
      [INFO] DSpace OAI-PMH ..................................... SKIPPED
      [INFO] DSpace OAI-PMH :: Local Customizations ............. SKIPPED
      [INFO] DSpace Assembly and Configuration .................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 05:30 min
      [INFO] Finished at: 2015-09-11T15:41:09-04:00
      [INFO] Final Memory: 59M/427M
      [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]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jfmorin Jean-Fran├žois Morin
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: