Failed to run task 'yarn'
Description
Environment
None
Activity
Show:
B L 26 October 2017 at 11:48
Solved by using a clean version of the zanata-platform-4.3.0 source code.
B L 20 October 2017 at 11:10Edited
[ERROR] error An unexpected error occurred: "EPROTO: protocol error, open '/media/sf_Downloadss/zanata-platform-platform-4.3.0/server/zanata-frontend/src/frontend/node_modules/fake-zanata-server/mocks/source?ids=1237.json'".
yarn-error-log Trace:
Error: https://registry.yarnpkg.com/fake-zanata-server/-/fake-zanata-server-3.0.5.tgz: ENOENT: no such file or directory, open 'C:\Users\lob\AppData\Local\Yarn\cache\v1\npm-fake-zanata-server-3.0.5-a524fe539de2a13de2437a21e7104de9919983ce\mocks\source?ids=1238.json'
B L 20 October 2017 at 06:04Edited
@Former user
I did but still the same issue after building with ./build --server -iQ
Former user 19 October 2017 at 22:56
Best to use the replacement- Maven eclipse plugin
B L 19 October 2017 at 11:29Edited
@Former user Thank you for your tip. I still get the same error when building the project. On Windows and Linux. Might there be another solution?
Not a Bug
Details
Details
Assignee
Unassigned
UnassignedReporter
B L
B LTested Version/s
None
Affects versions
Priority

More fields
Time tracking
More fields
Time trackingCreated 18 October 2017 at 13:36
Updated 26 October 2017 at 11:48
Resolved 18 October 2017 at 21:45
Issue: Running 'mvn eclipse:eclipse' on source project (zanata-platform 4.3.0) causes 'yarn' error
Using:
Apache Maven 3.5.0
Node 6.11.4
npm 3.10.10
Windows 10 64bit
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (frontend: execute yarn install) on project zanata-frontend: Failed to run task: 'yarn ' failed. (error code 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (frontend: execute yarn install) on project zanata-frontend: 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:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:353) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at io.takari.maven.builder.smart.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:334) at io.takari.maven.builder.smart.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:104) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:95) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 14 more Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'yarn ' failed. (error code 1) at com.github.eirslett.maven.plugins.frontend.lib.YarnTaskExecutor.execute(YarnTaskExecutor.java:61) at com.github.eirslett.maven.plugins.frontend.mojo.YarnMojo.execute(YarnMojo.java:65) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:89) ... 16 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :zanata-frontend