本地Maven仓库有所需jar包依然报错,missing………………
既然有这个jar包为什么还会报错呢?
查找到对应_remote.repositories文件。内容如下:
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice. #Wed May 29 10:47:49 CST 2019 rocketmq-0.0.10-20190528.075353-3.pom>nexus= rocketmq-0.0.10-20190528.075353-3.jar>nexus=
显示当前artifactId是从nexus下载的。而此时我是连不上私服的。
最后把_remote.repositories文件删掉后能构建成功。或者将_remote.repositories文件定义的repositoryID修改为能联系上
的repository仓库地址。
参考:
2.https://stackoverflow.com/questions/32591187/maven-meaning-of-remote-repositories-file
3.https://stackoverflow.com/questions/16866978/maven-cant-find-my-local-artifacts