Maven 未能在上收集依赖项

Maven 未能在上收集依赖项,maven,nexus,Maven,Nexus,我只是想了解一些事情。假设我想把这种依赖性拉进去 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersi

我只是想了解一些事情。假设我想把这种依赖性拉进去

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.thirdwatch</groupId>
<artifactId>mvn-to-cpe</artifactId>
<version>1.0</version>
<dependencies>
    <dependency>
        <groupId>ch.racic.testing</groupId>
        <artifactId>test-configuration-manager</artifactId>
        <version>0.9.5</version>
        <exclusions>
            <exclusion>
                <groupId>*</groupId>
                <artifactId>*</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>
</project>
这个罐子好像不见了。我们正在使用Nexus服务器,这就是它所显示的

我相信Nexus反映了Central Maven回购协议,而且Central Maven似乎拥有它

这一差异的原因是什么? 我们是否镜像了错误的maven存储库


切换到多模块项目时,pom文件中出现了一个问题,它完成了所有阶段,但只自动发布了核心工件


这个问题现在已经解决了,0.13.2包含了所有的工件,很抱歉给您带来不便,但是单元测试没有涵盖这个问题,我已经注意到了,因为安装运行得很好,所以我可以在我的机器上使用它:-/

@EGHM指出版本0.9.4有一个jar,版本0.9.5使用一个父pom。我不知道父pom是否与此有关,但我们怀疑它可能…很抱歉现在看到了这一点,是的,似乎我在如何部署它时出了问题。。。我试图找出原因,因为部署日志告诉我它已上载到maven central(父pom工件),但不确定为什么它最终不在那里。似乎0.9.5-SNAPSHOT在那里,但在发行版上没有。OK似乎不知何故陷入了登台阶段,它们被上传了,但如果不是SNAPSHOT,则从未升级。我还没有添加任何文档,所以单元测试是文档,但是如果需要的话,我可以在有时间的时候记录它。顺便说一句,问题是其他工件缺少创建签名的gpg插件,并且在从登台升级到产品的过程中被拒绝,现在所有子模块都继承了该插件配置,将其移动到父模块中
[ERROR] Failed to execute goal on project mvn-to-cpe: Could not resolve dependencies for project com.thirdwatch:mvn-to-cpe:jar:1.0: Failed to collect dependencies at ch.racic.testing:test-configuration-manager:jar:0.9.5: Failed to read artifact descriptor for ch.racic.testing:test-configuration-manager:jar:0.9.5: Failure to find ch.racic.testing:test-configuration-manager-parent:pom:0.9.5 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]