java


maven dependency not resolved


I have the following dependency:
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5-osgi</version>
</dependency>
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)?
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:
[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]
At this point I run mvn with options -e -X and:
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]
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.
<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>
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.
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5-osgi</version>
<type>pom</type>// remove this
</dependency>
And try
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
A mirror is available at http://mirrors.ibiblio.org/maven2/
Or Try
<dependency>
<groupId>ant</groupId>
<artifactId>ant.osgi</artifactId>
<version>1.6.5</version>
</dependency>
Or
latest version
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.0</version>
</dependency>
Apache ivy maven config
<dependency>
<groupId>org.apache.ivy</groupId>
<artifactId>ivy</artifactId>
<version>2.1.0</version>
</dependency>

Related Links

[Java][SQL] Hardcoded username and password on query
how to modify the value of a primitive data passed to a C++ routine using Java and JNI?
Java: test System output including “new lines” with assertEquals
How to ignore ' ' in Xpath?
Casting a type in a data structure
Spring Boot EnableCaching and Cacheable annotation not working
FATAL EXCEPTION: main NoSuchMethodError for VideoView.setOnPreparedListener() [duplicate]
Using SWIG to wrap c++ to java UnsatisfiedLinkError: HeaderJNI.new_Test()J
Java accessing object throught array
JavaFX ScrollPane setVvalue() not working as intended
Efficient handling of mouse clicks
Right syntax for concat on derby
Break 2 loops if condition satisfied in Java [duplicate]
Simple Java currency converter errors
Vert.x Json.decodeValue list
Auditing with spring-data-mongodb

Categories

HOME
winforms
date
netbeans
tesseract
jsp-tags
cvs
maven-3
spring-jdbc
graphql
dxl
ojdbc
ezpublish
yum
portia
vifm
vault
reveal.js
messages
libtiff
aurigma
shared-hosting
jquery-ajaxq
errorlevel
intentfilter
css-animations
tapestry
zurb-foundation-6
tibco-mdm
crosstab
xpages-ssjs
one-to-many
cas
chromebook
linkerd
buck
librato
flink-streaming
skia
stormpath
uisplitview
contact-form
karaf
grails-3.1
pim
usbserial
form-data
google-api-nodejs-client
space-complexity
starteam
sql-server-agent
angular-resource
network-flow
rails-routing
setter
forever
kbuild
windows-mobile-6.5
knpmenubundle
flutterwave
vtigercrm
chord-diagram
vmware-tools
android-textview
mathematica-frontend
impresspages
prettytensor
php-internals
ios4
cartesian-product
t4mvc
atk4
jqgrid-formatter
ideamart
method-parameters
unity5.2.3
graph-api-explorer
c++03
website-monitoring
winddk
titanium-modules
googlemock
project-planning
marmalade
didselectrowatindexpath
meteor-velocity
imdbpy
industrial
tws
buster.js
qt-faststart
hungarian-algorithm
lcs
drools-planner
e4x
osql
netbeans-6.9
eclipse-templates
gcj
netbeans-7.1
file-comparison
mysql-error-1005
cxxtest
subviews
dmx512
getresponsestream
modelstate
nhibernate.search
forums
mirah
webkit.net
iweb
eqatec
django-notification

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App