Maven 使用问题汇总

Failed to execute goal on project travel_spark: 
Could not resolve dependencies for project com.kkb.travel:travel_spark:jar:1.0-SNAPSHOT: 
Failed to collect dependencies at org.geotools:gt-main:jar:20.1: 
Failed to read artifact descriptor for org.geotools:gt-main:jar:20.1: 
Failure to find org.geotools:library:pom:20.1 in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [Help 1]

本地仓库迁移后,jar包引用异常。
        若本地仓库中存在对应jar包,但仍然从网络中进行拉取,可以查看本地仓库的对应目录中是否包含 _remote.repositories文件,可以移除该文件后刷新Maven依赖进行尝试解决。

_remote.repositories文件存储的是每次从私服或者中央仓库下载的jar包的信息。


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。