gpt4 book ai didi

java - maven无法从中央下载mysql连接器8.0.12

转载 作者:行者123 更新时间:2023-11-29 17:09:23 25 4
gpt4 key购买 nike

Maven 无法从 Central 下载 mysql 连接器 8.0.12,显示以下错误:

<小时/>
Downloading: https://repo.maven.apache.org/maven2/mysql/mysql-connector- 
java/8.0.12/mysql-connector-java-8.0.12.pom
[INFO] ---------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 3.642 s
[INFO] Finished at: 2018-08-21T00:22:03+05:30
[INFO] Final Memory: 10M/113M
[INFO] ---------------------------------------------------------------------
[ERROR] Failed to execute goal on project OneSolution: Could not resolve
dependencies for project OneSolution:OneSolution:jar:1.1.1: Failed to
collect dependencies at mysql:mysql-connector-java:jar:8.0.12: Failed to
read artifact descriptor for mysql:mysql-connector-java:jar:8.0.12: Could
not transfer artifact mysql:mysql-connector-java:pom:8.0.12 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version -> [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.
<小时/>

感谢任何帮助,在网上没有得到足够的建议,请在这里尝试。

最佳答案

解决方案 1: 在控制台中尝试 mvn clean install

解决方案 2: 这可能是由于您计算机上的防火墙造成的。关闭防火墙并重试。

解决方案 3: 检查您的 pom.xml 是否具有类似的依赖项。

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>

关于java - maven无法从中央下载mysql连接器8.0.12,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51937048/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com