Note that there are some explanatory texts on larger screens.

plurals
  1. POmaven dependency not resolved
    text
    copied!<p>I have the following dependency:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;ant&lt;/groupId&gt; &lt;artifactId&gt;ant&lt;/artifactId&gt; &lt;version&gt;1.6.5-osgi&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>it is not available in the maven central repository. which mirror can I choose to resolve it properly (install locally and deploy to our internal repository)?</p> <p>UPDATE I see from the answers that i need to add some details. This dependency is not explicitly set in any of our poms. When calling maven install it happens that it fails cause cannot find it. I post the full stack: </p> <pre><code> [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) -&gt; [Help 1] </code></pre> <p>At this point I run mvn with options -e -X and: </p> <pre><code> 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.&lt;init&gt;(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] </code></pre> <p>For this reason I have tried to see if I can find the pom given on the top of the question. I also add the explicitly called dependencies. </p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt; &lt;artifactId&gt;groovy-all&lt;/artifactId&gt; &lt;version&gt;1.7.2&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;sahi&lt;/groupId&gt; &lt;artifactId&gt;sahi&lt;/artifactId&gt; &lt;version&gt;3.5&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.easyb&lt;/groupId&gt; &lt;artifactId&gt;easyb-core&lt;/artifactId&gt; &lt;version&gt;1.1&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt; &lt;artifactId&gt;httpclient&lt;/artifactId&gt; &lt;version&gt;4.1.1&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-io&lt;/groupId&gt; &lt;artifactId&gt;commons-io&lt;/artifactId&gt; &lt;version&gt;1.4&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>Currently as a workaround, I found in a local maven repository of one of our CI build server (the build was green:-) ) an uncorrupted version. of 1.6.5-osgi and i will upload it to nexus.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload