贴上出错信息,这个错误表明,在尝试构建项目XXX时,Maven无法解析项目的依赖项,具体来说,无法找到XXX,XXXX这两个依赖项
Failed to execute goal on project XXXXX: Could not resolve dependencies
for project XXXXX The following artifacts could not be resolved: XXXX (absent),XXXX (absent):
Cannot access aliyunmaven (https://maven.aliyun.com/repository/public) in offline mode and the artifact
XXXXXhas not been downloaded from it before. -> [Help 1]
下面是一些解决方法:
1.你的pom.xml文件中有没有配置正确
2.强制更新依赖项,可能会有缓存出现的问题
mvn clean install -u
3.更新Maven版本
4.清理本地仓库缓存