赞
踩
新接手了一个项目,导入到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的几个常见仓库,
https://repo1.maven.org/maven2/
http://ip:port/repository/maven-public
,因为它的范围最广。Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。