前后经历了很多遇到了非常多的bug
1.Return code is: 501 , ReasonPhrase:HTTPS Required.
这个是要修改setting.xml文件 将http变成https
2.Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.6.1 from/to repo1 (http://insecure.repo1.maven.org/maven2/): Specified destination directory cannot be created: .......\....\RepMaven\org\apache\maven\plugins\maven-
这个就是我主要的问题了 这里大概是因为我把文件maven文件和仓库都放在了C盘,这个位置必须要管理员权限,因此他会报错无法创建。
3.maven无法解析插件
这个应该是网络不行,我是因为idea没有权限,所以解析不成功
4.Connect to insecure.repo1.maven.org:80
添加setting.xml中的mirror配置参考:
<mirror>
<id>ibiblio.org</id>
<name>ibibli