栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Failed to collect dependencies for [net.rforge:REngine:jar:0.6-8.1

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Failed to collect dependencies for [net.rforge:REngine:jar:0.6-8.1

使用maven打包的时候报了这个错误:

Failed to read artifact descriptor for org.clojars.strongh:rserveengine:jar:1.7.0: Could not transfer artifact org.clojars.strongh:rserveengine:pom:1.7.0 from/to clojars (http://clojars.org/repo/): hostname in certificate didn't match:  !=  OR  -> [Help 1]

查看服务器上本地仓库地址:

mvn -X

到目标仓库查看一下:

cd  /root/.m2/repository

发现仓库是空的。

思路1:

1.定位到包(仓库在哪找见第一种解决方案描述),然后发现压根没有jar(其实所有导包失败基本都是因为没有jar所致)

2.访问中央仓库:https://mvnrepository.com/,下载指定的jar

https://mvnrepository.com/artifact/org.clojars.strongh/rserveengine

3.删除后缀为:.jar.lastUpdated,将刚刚下载的jar放到这里

思路2:

apache-maven-3.3.9confsettings.xml 修改一下镜像:

    
      alimaven
      aliyun maven
      http://maven.aliyun.com/nexus/content/groups/public/
      central        
    
	
		CN
		OSChina Central                                                                                                                       
		http://maven.oschina.net/content/groups/public/
		central
	
       
		ui
		central
		Human Readable Name for this Mirror.
        http://uk.maven.org/maven2/
	

	
		sprintio
		central
		Human Readable Name for this Mirror.
		https://repo.spring.io/libs-snapshot/
		
  
思路3:

我本地是可以下载的,使用Jenkins打包部署的时候,下载不下来,我就把本地仓库里面的文件同步到服务器上的仓库里面,问题解决。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/340716.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号