You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: