发现maven不能从私服下载jar包。
打开私服发现还需要配置一下东西。
问题1: 解决central runting 状态不成功的方法
repositories->central->routing ,如果状态不是成功的话,请根据一下步骤
远程仓库地址:https://repo1.maven.org/maven2/
这改完之后 保存 保存的同时请查看日志 左边栏 admin 里有logging-》log 如果发现这条异常:
Remote strategy prefix-file on M2Repository(id=central) detected invalid input, results discarded: Prefix file size exceeds maximum allowed size (100000), refusing to load it
这个时候 找到 nexus.properties 文件,这个文件在conf里面,我用的centos其他的系统去找找吧, 添加这:
org.sonatype.nexus.proxy.maven.routing.Config.prefixFileMaxSize = 500000
这个时候再次点击保存,就显示没问题了 刷新一下回到第一步 也显示正常了。
继续:
我的vps个人配置有点问题,在centos搭建配置小了好像不行
我的 ram 512 swap 64 暂停了 。尴尬
转载请注明原文地址: https://ju.6miu.com/read-25750.html