因此,我的项目有一些部署在公司nexus存储库中的依赖项。当我构建我的项目时,其中一个传递依赖项(也是我们的项目之一)未从存储库中正确下载,而是看到了以下错误。
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: myTransitiveDependency
Reason: POM 'myTransitiveDependency' not found in repository: Unable to download the artifact from any repository
myTransitiveDependency
from the specified remote repositories:
x (http://url/of/repo/x)
for project myTransitiveDependency
我的maven 2可执行文件:
Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
Java version: 1.6.0_35
Java home: /product/java/jdk1.6.0_35/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux" version: "2.6.18-371.el5" arch: "amd64" Family: "unix"
但是,如果我使用maven 3可执行文件,比如maven 3.2.3
(我也尝试了其他几个版本的maven 3),通常会从相应的repo下载传递依赖项!
FWIW,有问题的传递依赖,myTransitiveDependency
,是一个pom
类型项目,是使用maven 3构建的。是否有任何已知的maven 2/3错误导致此问题?如果是的话,有没有解决办法?