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,因为它的范围最广。
相关推荐
wanhengidc5 分钟前
服务器机柜与网络机柜各自的优势
服务器·网络·智能路由器
网易独家音乐人Mike Zhou30 分钟前
【Linux应用】开发板USB共享网络,网线或USB以太网共享网络(局域网连接PC和开发板,实现PC给开发板共享网络,USB通过NDIS驱动共享)
linux·网络·单片机·mcu·物联网·嵌入式·iot
托比-马奎尔1 小时前
第十二章:网络编程
网络
DoraBigHead1 小时前
比特的尽头,是世界的入口
网络协议
颖川初尘1 小时前
端口到底是个什么鬼?回答我!
服务器·网络·tcp/ip·node.js
daikaimiao3 小时前
https——TCP+TLS
网络协议·tcp/ip·https
nightunderblackcat4 小时前
新手向:Python网络编程,搭建简易HTTP服务器
网络·python·http
Yama1174 小时前
SSL与HTTP概述
网络协议·http·ssl
hnlucky5 小时前
同时部署两个不同版本的tomcat要如何配置环境变量
java·服务器·http·tomcat·web
cui_win5 小时前
【网络】Linux 内核优化实战 - net.ipv4.tcp_congestion_control
linux·网络·tcp/ip