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 小时前
Dify HTTP 请求节点实战:发送 JSON、解析响应与处理异常
网络协议·http·json·dify
Cry丶2 小时前
ubuntu安装vsftpd
服务器·网络·ubuntu
SHENGWEI胜为5 小时前
交换机端口显示正常,终端却获取不到 IP 地址?从 DHCP 流程定位故障
服务器·网络·测试工具·缓存·通信工程
ITxiaobing20236 小时前
海外广告投放的 IP 定位服务怎么选?一份基于实测数据的选型参考
网络协议·tcp/ip·php
IMPYLH7 小时前
Linux 系统备份与镜像
linux·服务器·网络
cfm_29147 小时前
初步了解ECDHE密钥交换
http
淘气包海鸟8 小时前
水声网络框架
网络·ns3·水
Lsetea9 小时前
curl -I检查HTTPS返回405:HEAD、GET与证书验收分层排查
linux·http·https·ssl证书·curl
国科安芯9 小时前
星间激光通信终端CANFD控制网络的时延确定性与辐射可靠性
网络·嵌入式硬件·信息与通信·canfd·低轨卫星·商业航天·抗辐射
我命由我123459 小时前
Python 开发 - Python 虚拟环境
运维·开发语言·后端·python·http·https·java-ee