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:1.6:yarn (yarn install)

See original GitHub issue

Maven build is getting failed for the the plugin execution

Error:

[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) @ dhulai ---
[INFO] Running 'yarn install' in C:\codelab\a2z\dhulai
[ERROR] Access is denied.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.285 s
[INFO] Finished at: 2018-08-04T18:49:19+05:30
[INFO] Final Memory: 35M/396M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (yarn install) on project dhulai: Failed to run task: 'yarn install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

What is the expected behavior? This should work perfectly as ran without plugin with only yarn install command

pom.xml ->

<plugin>
                        <groupId>com.github.eirslett</groupId>
                        <artifactId>frontend-maven-plugin</artifactId>
                        <version>${frontend-maven-plugin.version}</version>
                        <executions>
                             <execution>
                                <id>yarn install</id>
                                <goals>
                                    <goal>yarn</goal>
                                </goals>
                                <configuration>
                                    <arguments>install</arguments>
                                </configuration>
                            </execution>
                            <execution>
                                <id>webpack build test</id>
                                <goals>
                                    <goal>yarn</goal>
                                </goals>
                                <phase>test</phase>
                                <configuration>
                                    <arguments>run webpack:test</arguments>
                                    <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
                                </configuration>
                            </execution>
                            <execution>
                                <id>webpack build prod</id>
                                <goals>
                                    <goal>yarn</goal>
                                </goals>
                                <phase>generate-resources</phase>
                                <configuration>
                                    <arguments>run webpack:prod</arguments>
                                    <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

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

frontend-maven-plugin : version : 1.6

java version “1.8.0_152” Java™ SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot™ 64-Bit Server VM (build 25.152-b16, mixed mode)

git version 2.11.0.windows.1 node: v10.4.0 npm: 6.1.0 yeoman: 2.0.2 yarn: 1.9.4 OS : Windows 10 64 bit

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18

github_iconTop GitHub Comments

7reactions
Priyanka-Pruthicommented, Sep 25, 2019

Upgrading node version to v10.15.3 and using npm version 6.4.1 fixed the issue. I hope this helps

hi i have same version installed for node and npm ,but still facing the issue

5reactions
tamerrab2003commented, Mar 27, 2019

Upgrading node version to v10.15.3 and using npm version 6.4.1 fixed the issue. I hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute goal com.github.eirslett:frontend-maven ...
I figured out that only yarn causes this problem. NPM installed by frontend-maven-plugins works well.
Read more >
[ERROR] Failed to execute goal com.github.eirslett:frontend ...
eirslett:frontend-maven-plugin:1.0:npm (npm install) on project ui: Failed to run task: 'npm install' failed. (error code 1) -> [Help 1] org.apache.maven.
Read more >
Failed to execute goal com.github.eirslett:frontend-maven ...
They must have changed the directory name but I haven't tried downgrading the version of Yarn since we're coding a new project in...
Read more >
[ERROR] Failed to execute goal com.github.eirslett:frontend ...
UPDATE: I was able to fix the issue in my setup. The executed script ran successfully, but it cleaned the target folder. The...
Read more >
Failed to execute goal com.github.eirslett:frontend-maven ...
Hello hope to get help here with yarn build using your plugin on Jenkins. This build works successfully on Windows and Linux desktops, ......
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