项目代码不报错,照网上的搜索结果,分别用了两种方式编译该maven项目
第一种:命令行,提示success
第二种:run as--》maven bulid--》输入compile
这个错的详细信息是:
[ERROR] Failed to execute goal on project SSM01: Could not resolve dependencies for project com.cailikun:SSM01:war:0.0.1-SNAPSHOT: Failed to collect dependencies at mysql:mysql-connector-java:jar:6.0.3: Failed to read artifact descriptor for mysql:mysql-connector-java:jar:6.0.3: Could not transfer artifact mysql:mysql-connector-java:pom:6.0.3 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [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