У меня есть следующая зависимость:Maven зависимость не решен
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5-osgi</version>
</dependency>
он не доступен в Maven центрального хранилища. В каком зеркале я могу решить его правильно (установить локально и развернуть в наш внутренний репозиторий)?
ОБНОВЛЕНИЕ Я вижу из ответов, что мне нужно добавить некоторые детали. Эта зависимость явно не установлена ни в одном из наших попов. При вызове maven install происходит так, что он не может вызвать причину, и не может его найти. Я выкладываю полный стек:
[ERROR] Failed to execute goal on project XXXXXX-functional-test: Could not resolve
dependencies for project XXXXXX-functional-test:jar:2.16.1: Failed to collect dependencies
for [org.codehaus.groovy:groovy-all:jar:1.7.2 (test), sahi:sahi:jar:3.5 (test),
org.easyb:easyb-core:jar:1.1 (test), org.apache.httpcomponents:httpclient:jar:4.1.1 (test),
commons-io:commons-io:jar:1.4 (test), org.aspectj:aspectjrt:jar:1.6.8 (compile),
org.springframework.integration:spring-integration-sftp:jar:2.0.5.RELEASE (compile),
org.springframework.integration:spring-integration-core:jar:2.0.5.RELEASE (compile),
org.springframework:spring-dao:jar:1.2.5 (test), junit:junit:jar:4.8.2 (test),
org.mockito:mockito-all:jar:1.8.5 (test), mysql:mysql-connector-java:jar:5.1.13 (provided),
com.oracle:ojdbc6:jar:11.2.0.1.0 (provided), log4j:log4j:jar:1.2.16 (compile),
org.springframework:spring-context:jar:3.0.5.RELEASE (test), org.springframework:spring-
context-support:jar:3.0.5.RELEASE (compile), org.springframework.integration:spring-
integration-mail:jar:2.0.0.M4 (compile), org.springframework:spring-test:jar:3.0.5.RELEASE
(test)]: Failed to read artifact descriptor for ant:ant:jar:1.6.5-osgi: Could not transfer
artifact ant:ant:pom:1.6.5-osgi from/to nexus
(http://ournexusaddress:8081/nexus/content/groups/public): 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 specified) -> [Help 1]
В этот момент я бегу МВН с опциями -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]
По этой причине я попытался увидеть, если я могу найти ПОМ, приведенный на наверху вопроса. Я также добавляю явно называемые зависимости.
<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>
В настоящее время в качестве обходного пути, я нашел в локальном хранилище Maven одного нашего CI сервере сборки (сборка была зеленый :-)) неповрежденная версия. 1.6.5-osgi, и я загружу его в нексус.
мне действительно нужно 1.6.5-OSGi. Я объясню это в обновленном вопросе – blackbird014
Я добавил ссылку на зеркало, также попробуйте с артефактом id ant.osgi . Также выглядят так, что поддержка муравья OSGI переносится на апавый плющ. Просто проверьте, если это так. –
gyan
репо я уже пробовал. Nothhing. Я проверял достоверность также в intellij-settings-mave-add репозитории (что похоже на добавление настроек) и ответа не было. Другие варианты не могут быть в порядке. в repo должно появиться ant/ant/1.6.5-osgi – blackbird014