mvn package 打包报错

来源:3-7 Docker run -link运行博客项目

慕娘1014247

2021-12-25

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:29 min
[INFO] Finished at: 2021-12-25T18:03:44+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project kubeblog: Could not resolve dependencies for project com.qingfeng:kubeblog:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.hibernate:hibernate-core:jar:5.2.16.Final from/to central (https://repo.maven.apache.org/maven2): GET request of: org/hibernate/hibernate-core/5.2.16.Final/hibernate-core-5.2.16.Final.jar from central failed: Premature end of Content-Length delimited message body (expected: 6,728,526; received: 5,430,599) -> [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/DependencyResolutionException

写回答

2回答

tyjs09

2022-03-05

我打包也报错,你的解决了吗?我给老师留言,也不回复我

0
3
weixin_慕无忌0272843
加这么一个命令 已解决 yum install -y java-devel
2022-08-25
共3条回复

清风

2021-12-25

执行的是什么命令呢

0
1
慕娘1014247
mvn package
2021-12-27
共1条回复

Kubernetes 入门到进阶实战,系统性掌握 K8s 生产实践

阿里云最有价值专家亲授,云原生时代必备技能

1501 学习 · 613 问题

查看课程