Maven:无法读取artifact描述符 [英] Maven: Failed to read artifact descriptor

查看:190
本文介绍了Maven:无法读取artifact描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以帮助我解决一个我正在努力的问题。

I am hoping someone can help me with a problem I am struggling with.

当我尝试从终端构建我的项目时,我得到这个错误: p>

When I try to build my project from the terminal I get this error:

Failed to read artifact descriptor for com.morrislgn.merchandising.common:test-data-utils:jar:0.3b-SNAPSHOT: Could not find artifact com.morrislgn.merchandising:merchandising:pom:0.3b-SNAPSHOT

common.test-data-utils jar由一个单独的项目创建,并在此与另一个项目之间共享(另一个项目也不构建,但这又是另一个问题)。

The common.test-data-utils jar is created by a separate project and shared between this and another project (the other project doesn't build either, but that is down to another problem).

我可以建立 com.morrislgn.merchandising.common:test-data-utils 没有问题,我可以在我的机器上的 .m2 本地存储库中看到它的条目。我也在Eclipse中重建了我的存储库。

I am able to build com.morrislgn.merchandising.common:test-data-utils without issue, I can see the entry it makes in the .m2 local repository on my machine. I have reindexed my repository in Eclipse also.

我的项目的POM有以下条目:

The POM for my project has this entry:

<dependency>
    <groupId>com.morrislgn.merchandising.common</groupId>
    <artifactId>test-data-utils</artifactId>
    <version>0.3b-SNAPSHOT</version>
</dependency>

对我来说似乎是正确的 - POM在查看时不会报告任何错误在Eclipse中。

Which appears to be correct to me - the POM doesn't report any errors either when it is viewed in Eclipse.

有人可以告诉我我在这里失踪或做错了吗?

Can some one tell me what I am missing here or doing wrong?

推荐答案

您可以随时尝试 mvn -U clean install

-U 强制检查远程存储库中的更新版本和快照

-U Forces a check for updated releases and snapshots on remote repositories

这篇关于Maven:无法读取artifact描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆