Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add the below instructions to run Front end Behind proxy since Front end build Fails when running Yarn #247

Open
anildes opened this issue Apr 21, 2022 · 0 comments

Comments

@anildes
Copy link

anildes commented Apr 21, 2022

When you build the Front end using POM the Front end adds proxy from settings.xml and installation Fails for Yarn. as shown below :
INFO] --- frontend-maven-plugin:1.6:yarn (yarn run lint) @ kouncil-frontend ---
[INFO] Found proxies: [default{protocol='https', host='http-proxy.ntrs.com', port=80}]
[INFO] Running 'yarn lint --https-proxy=http://http-proxy.ntrs.com:80 --proxy=http://http-proxy.ntrs.com:80' in /Users/AD472/anil/kouncil-kouncil-1.2/kouncil-frontend
[INFO] yarn run v1.22.18
[ERROR] warning ../../../package.json: No license field
[INFO] $ nx lint --https-proxy=http://http-proxy.ntrs.com:80 --proxy=http://http-proxy.ntrs.com:80
[INFO]
[INFO] > nx run kouncil:lint --httpsProxy=http://http-proxy.ntrs.com:80 --proxy=http://http-proxy.ntrs.com:80
[INFO]
[ERROR] 'httpsProxy' is not found in schema
[INFO]
[INFO]
[INFO]
[INFO] > NX Running target "kouncil:lint" failed
[INFO]
[INFO] Failed tasks:
[INFO]
[INFO] - kouncil:lint
[INFO]
[INFO] Hint: run the command with --verbose for more details.
[INFO]
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.908 s
[INFO] Finished at: 2022-04-20T21:00:50-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (yarn run lint) on project kouncil-frontend: Failed to run task: 'yarn lint --https-proxy=http://http-proxy.ntrs.com:80 --proxy=http://http-proxy.ntrs.com:80' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 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
What is the resolution for this ?
To work around we need to add yarnInheritsProxyConfigFromMaven as shown below so that Proxy configurations are not inherited from settings.xml



com.github.eirslett
frontend-maven-plugin
1.6

false
target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant