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

Mirage 2 maven build reports SUCCESS even in case of errors

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 6.0
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
    • Attachments:
      0
    • Comments:
      9
    • Documentation Status:
      In Comments

      Description

      If something failed, the global build result is SUCCESS. Like this:

      [INFO] npm ERR! Exit status 1
      [INFO] npm ERR!
      [INFO] npm ERR! Failed at the Mirage2@0.1.1 postinstall script.
      [INFO] npm ERR! This is most likely a problem with the Mirage2 package,
      [INFO] npm ERR! not with npm itself.
      [INFO] npm ERR! Tell the author that this fails on your system:
      [INFO] npm ERR! bower install
      [INFO] npm ERR! You can get their info via:
      [INFO] npm ERR! npm owner ls Mirage2
      [INFO] npm ERR! There is likely additional logging output above.
      [INFO] npm ERR! System Linux 2.6.32-131.17.1.el6.x86_64
      [INFO] npm ERR! command "/opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node" "/opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/npm/bin/npm-cli.js" "install" "--color=false"
      [INFO] npm ERR! cwd /opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2
      [INFO] npm ERR! node -v v0.10.31
      [INFO] npm ERR! npm -v 1.4.23
      [INFO] npm ERR! code ELIFECYCLE
      [INFO] npm ERR!
      [INFO] npm ERR! Additional logging details can be found in:
      [INFO] npm ERR! /opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log
      [INFO] npm ERR! not ok code 0
      [ERROR] MojoFailureException:
      org.apache.maven.plugin.MojoFailureException: Failed to run task
      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:45)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --color=false' failed. (error code 1)
      at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:38)
      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:43)
      ... 24 more
      [INFO] ------ (Mirage2) com.github.eirslett:frontend-maven-plugin:0.0.16:grunt
      [INFO] Running 'grunt classic_mirage_color_scheme no-compass-prod --no-color' in /opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2
      .
      .
      .
      [INFO] Done, without errors.
      [INFO] ------ (Mirage2) de.saumya.mojo:gem-maven-plugin:1.0.6:exec
      [INFO] error styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.
      [INFO] Load paths:
      [INFO] Compass::SpriteImporter
      [INFO] /opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/themes/Mirage2/styles
      [INFO] /opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/rubygems/gems/compass-core-1.0.3/stylesheets)
      [INFO] Compilation failed in 1 files.
      [WARNING]
      [INFO]
      [ERROR] PluginManagerException:
      org.apache.maven.plugin.PluginExecutionException: Execution null of goal de.saumya.mojo:gem-maven-plugin:1.0.6:exec failed: Java returned: 1
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: Java returned: 1
      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
      at de.saumya.mojo.ruby.script.AntLauncher.doExecute(AntLauncher.java:107)
      at de.saumya.mojo.ruby.script.AntLauncher.executeIn(AntLauncher.java:141)
      at de.saumya.mojo.ruby.script.Script.executeIn(Script.java:108)
      at de.saumya.mojo.gem.ExecMojo.executeWithGems(ExecMojo.java:106)
      at de.saumya.mojo.gem.AbstractGemMojo.executeJRuby(AbstractGemMojo.java:469)
      at de.saumya.mojo.jruby.AbstractJRubyMojo.execute(AbstractJRubyMojo.java:298)
      at de.saumya.mojo.gem.AbstractGemMojo.execute(AbstractGemMojo.java:222)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      ... 23 more
      [INFO]
      [INFO] — maven-war-plugin:2.4:war (default-war) @ xmlui-mirage2 —
      [INFO] Packaging webapp
      [INFO] Assembling webapp [xmlui-mirage2] in [/opt/dspace-src-50/dspace/modules/xmlui-mirage2/target/xmlui-mirage2-5.0]
      [INFO] Processing war project
      .
      .
      .
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] DSpace Addon Modules ............................... SUCCESS [ 3.575 s]
      [INFO] DSpace Kernel :: Additions and Local Customizations SUCCESS [ 13.753 s]
      [INFO] DSpace XML-UI Mirage2 Theme :: Local Customisations SUCCESS [02:50 min]
      [INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SUCCESS [ 18.223 s]
      [INFO] DSpace JSP-UI :: Local Customizations .............. SUCCESS [ 10.036 s]
      [INFO] DSpace RDF :: Local Customizations ................. SUCCESS [ 13.565 s]
      [INFO] DSpace REST :: Local Customizations ................ SUCCESS [ 13.503 s]
      [INFO] DSpace SWORD :: Local Customizations ............... SUCCESS [ 8.846 s]
      [INFO] DSpace SWORD v2 :: Local Customizations ............ SUCCESS [ 8.750 s]
      [INFO] DSpace SOLR :: Local Customizations ................ SUCCESS [ 11.696 s]
      [INFO] DSpace OAI-PMH :: Local Customizations ............. SUCCESS [ 8.802 s]
      [INFO] DSpace Assembly and Configuration .................. SUCCESS [01:02 min]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 05:45 min
      [INFO] Finished at: 2015-02-16T21:52:29+01:00
      [INFO] Final Memory: 58M/411M
      [INFO] ------------------------------------------------------------------------

      The first time I did not have any prerequisities installed (bower, grunt, ruby, compass), nevertheless the compilation finished "SUCCESSful". I am not alone, this guy had the same problem – http://sourceforge.net/p/dspace/mailman/message/32993367.

      Some information on this site – https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace (7. Build the Installation Package) or https://wiki.duraspace.org/display/DSDOC5x/Mirage+2+Configuration+and+Customization – about prerequisities would be useful.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ctu-developers CTU Developers
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: