Java maven依赖关系未解决
我有以下依赖关系:Java maven依赖关系未解决,java,maven,Java,Maven,我有以下依赖关系: <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.5-osgi</version> </dependency> 此时,我使用选项-e-X和: Caused by: org.sonatype.aether.transf
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5-osgi</version>
</dependency>
此时,我使用选项-e-X和:
Caused by: org.sonatype.aether.transfer.ChecksumFailureException: Checksum validation failed,
could not read expected checksum: C:\Users\andrea\.m2\repository\ant\ant\1.6.5-osgi\ant-
1.6.5-osgi.pom.sha1.tmp56e90fe6eda74ac3 (The system cannot find the file
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.verifyChecksum(WagonRepositoryConnector.java:714)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:618)
... 4 more
Caused by: java.io.FileNotFoundException: C:\Users\andrea\.m2\repository\ant\ant\1.6.5-osgi\ant-1.6.5-osgi.pom.sha1.tmp56e90fe6eda74ac3 (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at org.sonatype.aether.util.ChecksumUtils.read(ChecksumUtils.java:47)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.verifyChecksum(WagonRepositoryConnector.java:710)
... 5 more
[ERROR]
[ERROR]
原因:org.sonatype.ether.transfer.ChecksumFailureException:校验和验证失败,
无法读取预期的校验和:C:\Users\andrea\.m2\repository\ant\ant\1.6.5-osgi\ant-
1.6.5-osgi.pom.sha1.tmp56e90fe6eda74ac3(系统找不到该文件
在org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.verifyChecksum(WagonRepositoryConnector.java:714)
在org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:618)
…还有4个
原因:java.io.FileNotFoundException:C:\Users\andrea\.m2\repository\ant\ant\1.6.5-osgi\ant-1.6.5-osgi.pom.sha1.tmp56e90fe6eda74ac3(系统找不到指定的文件)
在java.io.FileInputStream.open(本机方法)
位于java.io.FileInputStream。(FileInputStream.java:120)
位于org.sonatype.aether.util.ChecksumUtils.read(ChecksumUtils.java:47)
在org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.verifyChecksum(WagonRepositoryConnector.java:710)
…还有5个
[错误]
[错误]
出于这个原因,我试图看看是否可以找到问题顶部给出的pom。我还添加了显式调用的依赖项
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.7.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>sahi</groupId>
<artifactId>sahi</artifactId>
<version>3.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easyb</groupId>
<artifactId>easyb-core</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
org.codehaus.groovy
groovy all
1.7.2
测试
萨希
萨希
3.5
测试
org.easyb
易用磁芯
1.1
测试
org.apache.httpcomponents
httpclient
4.1.1
测试
公地io
公地io
1.4
测试
目前作为一种解决方法,我在我们的一个CI构建服务器(构建为绿色:-)的本地maven存储库中发现了一个未损坏的版本。我将把它上传到nexus。镜像可在
或尝试
<dependency>
<groupId>ant</groupId>
<artifactId>ant.osgi</artifactId>
<version>1.6.5</version>
</dependency>
蚂蚁
蚂蚁
1.6.5
或
最新版本
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.0</version>
</dependency>
蚂蚁
蚂蚁
1.7.0
ApacheIvyMaven配置
<dependency>
<groupId>org.apache.ivy</groupId>
<artifactId>ivy</artifactId>
<version>2.1.0</version>
</dependency>
org.apache.ivy
常春藤
2.1.0
蚂蚁
蚂蚁
1.6.5-osgi
pom//删除此文件
试一试
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
蚂蚁
蚂蚁
1.6.5
我真的需要1.6.5-osgi。我在现在的问题中对此进行了解释。我真的需要1.6.5-osgi。我在问题“现在更新”中对此进行了解释,我添加了一个镜像链接,也请尝试使用artifact id ant.osgi。看起来ant OSGI支持也转移到了ApacheIvy。如果是这样的话,请检查一下。我已经尝试过的回购协议。没什么。我还在intellij settings mave add repository(类似于添加到设置)中测试了有效性,但没有回复。其他选项不能正常。在回购协议中应显示ant/ant/1.6.5-Osgit镜像的pom为1.3k,jar为956KB。。我可以手动下载!你面临的问题是什么?它不是一面镜子。尝试将其放在settings.xml中,但它无法连接。如果对你有用,请告诉我。也许我只是做错了什么(我怀疑,但我希望……)。
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5-osgi</version>
<type>pom</type>// remove this
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>