mvn clean package 报错:Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:.....
使用maven命令进行打包时,报错:
Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2)
配阿里maven私有仓库服务----->直接把maven安装文件夹的conf文件夹下的 settings.xml文件配置如下:
<!--配置阿里云maven私有仓库(即配阿里私服)-->
<mirror>
<id>alimaven</id>
<mirrorOf>*</mirrorOf>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>