org.apache.maven.plugin.MojoFailureException: Failed to run task

Sakai JIRA | Andrea Schweer | 2 years ago
  1. 0

    When trying to build DSpace 5.0 with Mirage 2, I run into an error message that ultimately appears to stem from a connection timeout on git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git I can confirm that this command hangs when run individually on the command line. It completes successfully within reasonable time when I change the protocol from git to https. It does complete successfully with the git protocol on my workstation (Ubuntu 14.04.1, git version 1.9.1). The build command I'm using is (in [dspace-src]) mvn clean package -P \!dspace-jspui,\!dspace-lni,\!dspace-rest,\!dspace-swordv2,\!dspace-sword,\!dspace-oai,\!dspace-rdf -Dmirage2.on=true The error message around the failure is [INFO] > Mirage2@0.1.1 postinstall /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2 [INFO] > bower install [INFO] [INFO] bower modernizr#2.8.3 not-cached git://github.com/Modernizr/Modernizr.git#2.8.3 [INFO] bower modernizr#2.8.3 resolve git://github.com/Modernizr/Modernizr.git#2.8.3 [INFO] bower bootstrap-sass-official#3.3.0 not-cached git://github.com/twbs/bootstrap-sass.git#3.3.0 [INFO] bower bootstrap-sass-official#3.3.0 resolve git://github.com/twbs/bootstrap-sass.git#3.3.0 [INFO] bower jquery#~1.10.2 not-cached git://github.com/jquery/jquery.git#~1.10.2 [INFO] bower jquery#~1.10.2 resolve git://github.com/jquery/jquery.git#~1.10.2 [INFO] bower respond#1.4.2 not-cached git://github.com/scottjehl/Respond.git#1.4.2 [INFO] bower respond#1.4.2 resolve git://github.com/scottjehl/Respond.git#1.4.2 [INFO] bower handlebars#2.0.0 not-cached git://github.com/components/handlebars.js.git#2.0.0 [INFO] bower handlebars#2.0.0 resolve git://github.com/components/handlebars.js.git#2.0.0 [INFO] bower html5shiv#3.7.2 not-cached git://github.com/aFarkas/html5shiv.git#3.7.2 [INFO] bower html5shiv#3.7.2 resolve git://github.com/aFarkas/html5shiv.git#3.7.2 [INFO] bower jquery-ui#1.10.3 not-cached git://github.com/components/jqueryui.git#1.10.3 [INFO] bower jquery-ui#1.10.3 resolve git://github.com/components/jqueryui.git#1.10.3 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 not-cached git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 resolve git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower holderjs#2.4.1 not-cached git://github.com/imsky/holder.git#2.4.1 [INFO] bower holderjs#2.4.1 resolve git://github.com/imsky/holder.git#2.4.1 [INFO] bower datatables#1.10.3 not-cached git://github.com/DataTables/DataTables.git#1.10.3 [INFO] bower datatables#1.10.3 resolve git://github.com/DataTables/DataTables.git#1.10.3 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 checkout 4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower modernizr#2.8.3 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git", exit code of #128 [INFO] [INFO] Additional error details: [INFO] github.com[0: 192.30.252.128]: errno=Connection timed out [INFO] fatal: unable to connect a socket (Connection timed out) [INFO] [INFO] npm ERR! Mirage2@0.1.1 postinstall: `bower install` [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-504.3.3.el6.x86_64 [INFO] npm ERR! command "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node" "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/npm/bin/npm-cli.js" "install" "--color=false" [INFO] npm ERR! cwd /usr/local/src/dspace-src/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! /usr/local/src/dspace-src/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:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) 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 The file /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log doesn't appear to have anything interesting in it.

    Sakai JIRA | 2 years ago | Andrea Schweer
    org.apache.maven.plugin.MojoFailureException: Failed to run task
  2. 0

    When trying to build DSpace 5.0 with Mirage 2, I run into an error message that ultimately appears to stem from a connection timeout on git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git I can confirm that this command hangs when run individually on the command line. It completes successfully within reasonable time when I change the protocol from git to https. It does complete successfully with the git protocol on my workstation (Ubuntu 14.04.1, git version 1.9.1). The build command I'm using is (in [dspace-src]) mvn clean package -P \!dspace-jspui,\!dspace-lni,\!dspace-rest,\!dspace-swordv2,\!dspace-sword,\!dspace-oai,\!dspace-rdf -Dmirage2.on=true The error message around the failure is [INFO] > Mirage2@0.1.1 postinstall /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2 [INFO] > bower install [INFO] [INFO] bower modernizr#2.8.3 not-cached git://github.com/Modernizr/Modernizr.git#2.8.3 [INFO] bower modernizr#2.8.3 resolve git://github.com/Modernizr/Modernizr.git#2.8.3 [INFO] bower bootstrap-sass-official#3.3.0 not-cached git://github.com/twbs/bootstrap-sass.git#3.3.0 [INFO] bower bootstrap-sass-official#3.3.0 resolve git://github.com/twbs/bootstrap-sass.git#3.3.0 [INFO] bower jquery#~1.10.2 not-cached git://github.com/jquery/jquery.git#~1.10.2 [INFO] bower jquery#~1.10.2 resolve git://github.com/jquery/jquery.git#~1.10.2 [INFO] bower respond#1.4.2 not-cached git://github.com/scottjehl/Respond.git#1.4.2 [INFO] bower respond#1.4.2 resolve git://github.com/scottjehl/Respond.git#1.4.2 [INFO] bower handlebars#2.0.0 not-cached git://github.com/components/handlebars.js.git#2.0.0 [INFO] bower handlebars#2.0.0 resolve git://github.com/components/handlebars.js.git#2.0.0 [INFO] bower html5shiv#3.7.2 not-cached git://github.com/aFarkas/html5shiv.git#3.7.2 [INFO] bower html5shiv#3.7.2 resolve git://github.com/aFarkas/html5shiv.git#3.7.2 [INFO] bower jquery-ui#1.10.3 not-cached git://github.com/components/jqueryui.git#1.10.3 [INFO] bower jquery-ui#1.10.3 resolve git://github.com/components/jqueryui.git#1.10.3 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 not-cached git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 resolve git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower holderjs#2.4.1 not-cached git://github.com/imsky/holder.git#2.4.1 [INFO] bower holderjs#2.4.1 resolve git://github.com/imsky/holder.git#2.4.1 [INFO] bower datatables#1.10.3 not-cached git://github.com/DataTables/DataTables.git#1.10.3 [INFO] bower datatables#1.10.3 resolve git://github.com/DataTables/DataTables.git#1.10.3 [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 checkout 4f3772cd37b898f456c0126c4b44178ce8d4aad7 [INFO] bower modernizr#2.8.3 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git", exit code of #128 [INFO] [INFO] Additional error details: [INFO] github.com[0: 192.30.252.128]: errno=Connection timed out [INFO] fatal: unable to connect a socket (Connection timed out) [INFO] [INFO] npm ERR! Mirage2@0.1.1 postinstall: `bower install` [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-504.3.3.el6.x86_64 [INFO] npm ERR! command "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node" "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/npm/bin/npm-cli.js" "install" "--color=false" [INFO] npm ERR! cwd /usr/local/src/dspace-src/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! /usr/local/src/dspace-src/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:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) 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 The file /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log doesn't appear to have anything interesting in it.

    Sakai JIRA | 2 years ago | Andrea Schweer
    org.apache.maven.plugin.MojoFailureException: Failed to run task
  3. 0

    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.

    Sakai JIRA | 2 years ago | CTU Developers
    org.apache.maven.plugin.MojoFailureException: Failed to run task
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Sakai JIRA | 2 years ago | CTU Developers
    org.apache.maven.plugin.MojoFailureException: Failed to run task
  6. 0

    Can not install npm on bamboo via maven

    GitHub | 2 years ago | jeiroa
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (npm install) on project esp-ui: Failed to run task

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.github.eirslett
      NpmMojo.execute
      1. com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:38)
      2. com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:43)
      2 frames
    3. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      1 frame
    4. com.soebes.maven
      ExecutorMojo.execute
      1. com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
      2. com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
      2 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      1 frame
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      9 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames