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

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

问题描述

我希望有人能帮助我解决我正在努力解决的问题.

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

当我尝试从终端构建我的项目时,出现此错误:

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 本地创建的条目在我的机器上的存储库.我也在 E​​clipse 中重新索引了我的存储库.

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>

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

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:无法读取工件描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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