猿问

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

Maven 无法从中央下载 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.

任何帮助表示赞赏,没有得到足够的在线建议,在这里尝试。


DIEA
浏览 477回答 3
3回答

SMILET

在 maven 中使用这种方式:<dependency>&nbsp; &nbsp; <groupId>mysql</groupId>&nbsp; &nbsp; <artifactId>mysql-connector-java</artifactId>&nbsp; &nbsp; <version>8.0.12</version>&nbsp;</dependency>
随时随地看视频慕课网APP

相关分类

Java
我要回答