question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.22:gulp

See original GitHub issue

Hello everyone,

I would know if somebody already had this kind of error on windows executing a maven clean install :

[INFO] --- frontend-maven-plugin:0.0.22:gulp (gulp build) @ aat --- [DEBUG] Configuring mojo com.github.eirslett:frontend-maven-plugin:0.0.22:gulp from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:0.0.22, parent: sun.misc.Launcher$AppClassLoader@338bd37a] [DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.22:gulp' with basic configurator --> [DEBUG] (f) arguments = build [DEBUG] (f) skip = false [DEBUG] (f) triggerfiles = [] [DEBUG] (f) workingDirectory = C:\Users\mallain\workspace\aat-ui\application [DEBUG] -- end configuration -- [INFO] Running 'gulp build --no-color' in C:\Users\mallain\workspace\aat-ui\application [INFO] [13:31:52] Using gulpfile ~\workspace\aat-ui\application\gulpfile.js [INFO] [13:31:52] Starting 'build'... [INFO] [13:31:52] Starting 'clean'... [INFO] [13:31:52] Finished 'clean' after 61 ms [INFO] [13:31:52] Starting 'wiredep'... [INFO] [13:31:52] Starting 'eslint'... [INFO] [13:31:53] Starting 'templateCache'... [INFO] [13:31:54] Starting 'images-theme-svg'... [INFO] [13:31:54] Starting 'images-catalogue'... [INFO] [13:31:55] 'images-catalogue' errored after 1.07 s [INFO] [13:31:55] C:\Users\mallain\workspace\aat-ui\application\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-fs\node_modules\gulp-sourcemaps\index.js:38 [INFO] debug(() => {return options;}); [INFO] ^ [INFO] SyntaxError: Unexpected token ) [INFO] at exports.runInThisContext (vm.js:73:16) [INFO] at Module._compile (module.js:443:25) [INFO] at Object.Module._extensions..js (module.js:478:10) [INFO] at Module.load (module.js:355:32) [INFO] at Function.Module._load (module.js:310:12) [INFO] at Module.require (module.js:365:17) [INFO] at require (module.js:384:17) [INFO] at Object.<anonymous> (C:\Users\mallain\workspace\aat-ui\application\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-fs\lib\src\index.js:8:18) [INFO] at Module._compile (module.js:460:26) [INFO] at Object.Module._extensions..js (module.js:478:10) [INFO] at Module.load (module.js:355:32) [INFO] at Function.Module._load (module.js:310:12) [INFO] at Module.require (module.js:365:17) [INFO] at require (module.js:384:17) [INFO] at Object.<anonymous> (C:\Users\mallain\workspace\aat-ui\application\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-fs\index.js:4:8) [INFO] at Module._compile (module.js:460:26) [INFO] at Object.Module._extensions..js (module.js:478:10) [INFO] at Module.load (module.js:355:32) [INFO] at Function.Module._load (module.js:310:12) [INFO] at Module.require (module.js:365:17) [INFO] at require (module.js:384:17) [INFO] at Object.<anonymous> (C:\Users\mallain\workspace\aat-ui\application\node_modules\gulp-imagemin\node_modules\imagemin\index.js:7:15) [INFO] [13:31:55] 'build' errored after 3.24 s [INFO] [13:31:55] Error in plugin 'run-sequence' [INFO] Message: [INFO] An error occured in task 'images-catalogue'. [INFO] [13:31:57] Finished 'wiredep' after 5.46 s [INFO] [13:31:58] all files 34.71 kB [INFO] [13:31:58] Finished 'images-theme-svg' after 3.89 s [INFO] [13:31:58] Finished 'templateCache' after 5.07 s [INFO] [13:31:59] ... [INFO] [13:31:59] Finished 'eslint' after 7.47 s [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:52.635s [INFO] Finished at: Mon Dec 12 13:31:59 CET 2016 [INFO] Final Memory: 11M/154M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.22:gulp (gulp build) on project aat: Failed to run task: 'gulp build --no-color' failed. (error code 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.22:gulp (gulp build) on project aat: Failed to run task at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task at com.github.eirslett.maven.plugins.frontend.mojo.GulpMojo.execute(GulpMojo.java:72) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'gulp build --no-color' 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.GulpMojo.execute(GulpMojo.java:70) ... 21 more [ERROR] [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

Please mention your frontend-maven-plugin and operating system version.

I use :

  • nodejs version v4.4.4
  • npm version : 2.15.1
  • mvn : Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: D:\java\apache-maven-3.0.4\bin\.. Java version: 1.7.0_85, vendor: Oracle Corporation Java home: D:\java\jdk1.7.0_85\jre Default locale: en_IE, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Thank you in advance ! 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
fragaLYcommented, Nov 19, 2017

If you are using https://spring.io/guides/tutorials/react-and-spring-data-rest/ be care. Please check the structure of your project it should not contain any previous node packages, package-lock.json and etc.

Then you could run clean install and you could find that exception disapears.

1reaction
math29commented, Dec 13, 2016

Yes this is the point, it works fine when I execute it without maven.

It works fine as well when I execute it in my Jenkins environment, but I don’t find out why it do not works in local on my computer.

It looks like there are specific plugins from gulp-load-plugins that do not works when I execute this maven install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute goal com.github.eirslett:frontend-maven ...
i have search through the issue and can't find any solution on the problem i am facing now. Any idea what did i...
Read more >
[ERROR] Failed to execute goal com.github.eirslett:frontend ...
LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project ui: Failed to run task #1335.
Read more >
Failed to execute goal com.github.eirslett · Issue #1233
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.29:install-node-and-npm (install node and npm) on project UI: ...
Read more >
Failed to execute goal com.github.eirslett:frontend-maven ...
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project tdpco-web-app-ui: Could not ...
Read more >
[ERROR] Failed to execute goal com.github.eirslett:frontend ...
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project ui: Failed to run task: 'npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found