想用Visual Studio Code结合Maven开发WebAPP,就集成一下试试。按照https://blog.csdn.net/CSUstudent007/article/details/103433387方法集成。但是构建Maven项目时候,老是提示错误。
https://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.apache.maven.plugins\:maven-archetype-plugin\:pom\:3.1.2 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/3.1.2/maven-archetype-plugin-3.1.2.pom
期间还出先各种 connect timeout错误。各种搜索,感觉应该是网络镜像的问题。找到了这篇文章。https://blog.csdn.net/pkx1993/article/details/86691426,在里面找到了解决方法。在maven的settings.xml配置文件mirrors里面加入
<mirrors>
<!-- 阿里云仓库 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name