Could not find artifact com.gexin.platform:gexin-rp-sdk-http:pom:4.1.0.1

Could not find artifact com.gexin.platform:gexin-rp-sdk-http:pom:4.1.0.1

新接手了一个项目,导入到idea后,maven标签中页点击Reload All Maven Projects,报Could not find artifact com.gexin.platform:gexin-rp-sdk-http:pom:4.1.0.1错误,根据个推集成指南,pom中添加依赖,再添加repository,就可以解决,具体如下

将下边的依赖放到maven项目的 pom.xml 中:

<dependency>
    <groupId>com.gexin.platform</groupId>
    <artifactId>gexin-rp-sdk-http</artifactId>
    <version>4.1.2.3</version>
</dependency>

然后再增加一个repository到 pom.xml 中:

 <repositories>
    <repository>
        <id>getui-nexus</id>
        <url>http://mvn.gt.getui.com/nexus/content/repositories/releases/</url>
    </repository>
 </repositories>

以上需要修改源代码,想到设置私服应该也能解决这个问题;nexus管理端---->设置---->repositories--->create repository,填上被代理地址http://mvn.gt.getui.com/nexus/content/repositories/releases/,在maven-public仓库的group中勾选新创建的仓库,再次刷新即可。

maven-central、maven-release、maven-snapshots、maven-public

顺便说一下maven的几个常见仓库,

  • maven-central
    • proxy类型,它代理的https://repo1.maven.org/maven2/
  • maven-release
    • hosted类型,它是发布的自有release jar包
  • maven-snapshots
    • hosted类型,它是发布的自有snapshot jar包
  • maven-public
    • group类型,组合仓库,也就是其他几个仓库的组合,可指定它是哪几个仓库的组合,通常settings.xml中访问地址是http://ip:port/repository/maven-public,因为它的范围最广。
相关推荐
小冷爱学习!2 小时前
华为动态路由-OSPF-完全末梢区域
服务器·网络·华为
技术小齐3 小时前
网络运维学习笔记 016网工初级(HCIA-Datacom与CCNA-EI)PPP点对点协议和PPPoE以太网上的点对点协议(此处只讲华为)
运维·网络·学习
shimly1234565 小时前
tcpdump 用法示例
网络·测试工具·tcpdump
xmweisi7 小时前
【华为】报文统计的技术NetStream
运维·服务器·网络·华为认证
VVVVWeiYee7 小时前
BGP配置华为——路径优选验证
运维·网络·华为·信息与通信
yourkin6667 小时前
TCP...
服务器·网络·tcp/ip
哑巴语天雨9 小时前
前端面试-网络协议篇
websocket·网络协议·http·面试·https
ktkiko1110 小时前
Websocket——心跳检测
网络·websocket·网络协议
GGGGGGGGGGGGGG.11 小时前
hapxory-ACL基础介绍及案例
运维·服务器·网络
小梁不秃捏12 小时前
HTTP 常见状态码技术解析(应用层)
网络·网络协议·计算机网络·http