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

How to store variables from an input text file?
Can you modify getters and setters? [closed]
Spring bean implementing two interfaces
spring-data-mongodb to write to multiple db's
Unexpected Output while trying yo convert String to date using FastDateFormat
org.simpleframework.xml.core.ElementException: Ordered element 'sch:SessionId' missing for class
Maven dependency management benefits
Why is Log4j2 throwing an error in Windows bash console
Array for loop in Android Studio
passing two parameters to println in java
Create two dimensional boolean array from two other arrays
Return 3 integers that have the same difference between each two from smallest to biggest in an array
Filter Babelnet synsets by category
How to add values to a ListView in other activity?
Why Kafka KTable is missing entries?
Using onresume function in gcmintentservice.java

Categories

HOME
vim
relative-path
at-command
disassembler
angular-ui-bootstrap
windows-server
ravendb
synchronization
tomcat6
visual-studio-2005
dtrace
database-replication
ab-testing
flux
sms-gateway
scichart
graphicsmagick
crosstab
javacv
su
uninstall
objectanimator
bpel
tinymce-4
google-rich-snippets
bosh
contact-form
pim
environment-modules
vxworks
neuroscience
sqlite2
android-fingerprint-api
streamreader
galen
fedex
sql-server-agent
angular2-meteor
btrace
wso2carbon
pnotify
winscp-net
pebble-watch
mu
feeds
pg-dump
boost-preprocessor
namecoin
mcafee
dwscript
jquery-filter
deadbolt-2
ado.net-entity-data-model
file-writing
measures
impresspages
two-factor-authentication
ios8-today-widget
django-unittest
microbenchmark
php-ci
pretty-print
kineticjs
android-nested-fragment
javafx-webengine
document-classification
typeof
resty-gwt
balanced-payments
odata4j
tws
dataservice
ril
qt-faststart
pushbackinputstream
typoscript2
quickdialog
frameset
bubble-chart
dotnethighcharts
external-accessory
rfc1123
android-sdk-2.1
visitor-statistic
forums
asp.net-profiles
vc90
substrings
adrotator
noscript
defensive-programming

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App