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

[Bug] Can not package success with yarnVersion v1.22.10 #260

Open
leocook opened this issue Dec 11, 2024 · 1 comment
Open

[Bug] Can not package success with yarnVersion v1.22.10 #260

leocook opened this issue Dec 11, 2024 · 1 comment

Comments

@leocook
Copy link

leocook commented Dec 11, 2024

Runtime platform environment
windows10

JDK Version
oracle openjdk 17.0.12

Describe the Bug
running mvn clean package -Dmaven.test.skip=true fail, and error message is blow:

[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v1.22.10/yarn-v1.22.10.tar.gz to C:\Users\Chris.m2\repository\com\github\eirslett\yarn\1.22.10\yarn-1.22.10.tar.gz
[INFO] Downloading via proxy optional{protocol='http', host='localhost', port=7890, nonProxyHosts='null'}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.307 s
[INFO] Finished at: 2024-12-11T13:40:56+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:install-node-and-yarn (install node and yarn) on project rocketmq-dashboard: Could not download Yarn: Could not download https://github.com/yarnpkg/yarn/releases/download/v1.22.10/yarn-v1.22.10.tar.gz: Remote host terminated the handshake: SSL peer shut down incorrectly -> [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

Steps to Reproduce
build project with command mvn clean package -Dmaven.test.skip=true

What Did You Expect to See?
BUILD SUCCESS

What Did You See Instead?
BUILD FAILURE

@lp1478529
Copy link

这是因为github被墙了,首先要有个魔法软件,然后在maven的settings.xml中配置代理就可以了。
image
以v2rayN为例,http的端口为10809
image

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

2 participants