Maven:无法读取

时间:2016-04-05 07:01:09

标签: java maven dependencies

我在Java中使用Maven为dependecines编写项目,并为客户端api maven@server:~/public/com/iggroup/publicapi/client/java/api-client-sdk-2.0.5.jar添加了我自己的maven服务器lib,并在同一位置.pom文件中创建看起来如下

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.iggroup.publicapi.client.java</groupId>
  <artifactId>api-client-sdk</artifactId>
  <version>2.0.5</version>
</project> 

...在我的项目pom.xml文件中添加了依赖

<dependency>
    <groupId>com.iggroup.publicapi.client.java</groupId>
    <artifactId>api-client-sdk</artifactId>
    <version>2.0.5</version>
</dependency>

Maven已刷新,发现版本正确,但无法加载此lib并显示Failed to read artifact descriptor for com.iggroup.publicapi.client.java:api-client-sdk:jar:2.0.5

Lib是好的,但也许我对名称文件,路径或我的pom做错了什么?

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。服务器中的路径错误,应如下所示: maven@server:~/public/com/iggroup/publicapi/client/java/api-client-sdk/2.0.5/api-client-sdk-2.0.5.jar