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,因为它的范围最广。
相关推荐
赛博三把手17 小时前
GPT-6.2 Sol 与 Astra 深度解析:Codex / ChatGPT 桌面端接入 api.new.bi 实战指南
网络·人工智能·gpt·chatgpt
humors22117 小时前
黑客是否真的安全
网络·安全·黑客·密码学·系统·入侵·白帽子
llilian_1617 小时前
高速公路北斗授时设备选型避坑指南
网络
Bowen_J1 天前
Flutter和Dart 网络协议实现
网络协议·flutter·dart
大今野1 天前
第 17 章 IP 编址与子网划分
网络·网络协议·tcp/ip·专转本
同步天下-刘经理1 天前
NTP授时服务器时间抖动根源深度解析
网络
feasibility.2 天前
电脑一天重启3次、WiFi还消失:蓝屏0x9F背后,是MT7921网卡撞上Windows电源管理
服务器·网络·windows·wifi·电脑·网卡·驱动
顧棟2 天前
INFINI Gateway 启动过程分析
服务器·网络·gateway
xbzb2 天前
服务器与网络:从一台裸机到能联网跑服务(5 篇)
服务器·网络·ip·raid·blog.csdn.net·article