Re: [Opencast] Failed to run task: 'npm run build --no-color --skipTests=false --color=false' failed.

1,060 views
Skip to first unread message

Greg Logan

unread,
Jun 21, 2016, 1:00:39 AM6/21/16
to Matterhorn Users, comm...@opencast.org

Hi,

First off, please use the matterho...@opencast.org list for support questions!

To address your issue, we need the part of the build above the list of modules to tell exactly what's going wrong, but if I had to guess I would say you either have a Git clone that was built with a previous Opencast version (solution: delete modules/matterhorn-admin-ui-ng and re-checkout) or an old version of Node.js.  If the above solutions don't resolve your issue please provide the full build log as am attachment or in pastebin.

Thanks,
G

On Jun 20, 2016 10:44 PM, "fish slippery" <little...@gmail.com> wrote:
In my Ubuntu 14.04 box, I always failed on this step when building Opencast 2.2.0 with "mvn clean install".
[INFO] Opencast // Assemblies // Distribution Presentation  SKIPPED
[INFO] Opencast // Assemblies // Distribution Worker ...... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:32 min
[INFO] Finished at: 2016-06-21T07:52:22+08:00
[INFO] Final Memory: 189M/552M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (frontend build) on project matterhorn-admin-ui-ng: Failed to run task: 'npm run build --no-color --skipTests=false --color=false' failed. (error code 1) -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :matterhorn-admin-ui-ng

--
You received this message because you are subscribed to the Google Groups "Opencast Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@opencast.org.

Greg Logan

unread,
Jun 28, 2016, 9:34:47 AM6/28/16
to comm...@opencast.org, Matterhorn Users, roger....@htwchur.ch
Hi Roger,

This is a bug in my opinion, but currently our admin UI process requires git to be installed as well.  If you check the .err file you posted, there are these lines:

[INFO] ESC[33mWarning: git is not installed or not in the PATH^G Use --force to continue.ESC[39m
[INFO] 
[INFO] ESC[31mAborted due to warnings.ESC[39m

G


On Tue, Jun 28, 2016 at 3:57 AM, Roger <roger....@htwchur.ch> wrote:
Yes  I tried  this for the module matterhorn-admin-ui-ng


Am Dienstag, 28. Juni 2016 11:42:32 UTC+2 schrieb Markus Ruepp:
Hi roger,
Did you try to delete your node_modules folder before you run the maven build?
Regards markus

Am 28. Juni 2016 11:17:26 MESZ, schrieb Roger <roger....@htwchur.ch>:

Hi, I rerun the "mvn clean install -e" and got the error messages as listed below.
I have attached the full output of the install process.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:08 min
[INFO] Finished at: 2016-06-28T10:12:52+02:00
[INFO] Final Memory: 184M/583M

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (frontend build) on project matterhorn-admin-ui-ng: Failed to run task: 'npm run build --no-color --skipTests=false --color=false' failed. (error code 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (frontend build) on project matterhorn-admin-ui-ng: Failed to run task
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
 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:128)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
 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: org.apache.maven.plugin.MojoFailureException: Failed to run task
 at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:62)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
 ... 20 more
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm run build --no-color --skipTests=false --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:59)
 ... 22 more
[ERROR]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :matterhorn-admin-ui-ng


Regards
Roger  


--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

fish slippery

unread,
Jun 28, 2016, 11:02:50 PM6/28/16
to Opencast Community, matterho...@opencast.org, roger....@htwchur.ch
I do have git installed.

在 2016年6月28日星期二 UTC+8下午9:34:48,Greg Logan写道:

Lars Kiesow

unread,
Jun 29, 2016, 8:23:58 AM6/29/16
to matterho...@opencast.org
FYI, we found and eliminated the component requiring git. Builds
without should now work. The patch is already merged in r/2.2.x
–Lars

Michael Dunston

unread,
Aug 12, 2016, 1:20:27 PM8/12/16
to Opencast Users, matterho...@opencast.org, comm...@opencast.org

On Tuesday, June 21, 2016 at 1:00:39 AM UTC-4, Greg Logan wrote:

Hi,

First off, please use the matterho...@opencast.org list for support questions!

To address your issue, we need the part of the build above the list of modules to tell exactly what's going wrong, but if I had to guess I would say you either have a Git clone that was built with a previous Opencast version (solution: delete modules/matterhorn-admin-ui-ng and re-checkout) or an old version of Node.js.  If the above solutions don't resolve your issue please provide the full build log as am attachment or in pastebin.


As another possible data point, I am getting this failure while trying to build the current 2.2.1 on Ubuntu 14.0.4 LTS using a clean installation of a newly downloaded source from https://bitbucket.org/opencast-community/matterhorn/get/2.2.1.tar.gz (opencast-community-matterhorn-bb7fd9694f21), not a previous version or git clone.  I do have git installed on this system (updated it just before attempting to run 'mvn clean install'), and this system already had the prereqs for a working 2.1.1 installation of Opencast.  Re-running with 'mvn clean install -rf :matterhorn-admin-ui-ng -X -e' resulted in "BUILD SUCCESS".

Reply all
Reply to author
Forward
0 new messages