Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Ant, Maven and Other Build Tools and the fly likes Apache Ant Installation - Build Failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Apache Ant Installation - Build Failed " Watch "Apache Ant Installation - Build Failed " New topic

Apache Ant Installation - Build Failed

Suneel Gupta

Joined: Nov 18, 2011
Posts: 11
After downloading Ant 1.8.2 on my Windows machine, I run the following from %ANT_HOME% per the installation directions:

bin\ant -f fetch.xml -Ddest=system

And I get this:

Buildfile: C:\bin\apache-ant-1.8.2\fetch.xml

[echo] Downloading to C:\bin\apache-ant-1.8.2\lib


[echo] Downloading to C:\bin\apache-ant-1.8.2\lib
[get] Getting:
[get] To: C:\bin\apache-ant-1.8.2\lib\maven-artifact-ant-2.0.4-dep.jar
[get] Error opening connection http://ibibl
[get] Error opening connection http://ibibl
[get] Error opening connection http://ibibl
[get] Can't get
-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\bin\apache-ant-1.8.2\lib\maven

C:\bin\apache-ant-1.8.2\get-m2.xml:85: Can't get
apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\bin

Total time: 0 seconds

So it looks like the Maven files aren't there and I verified that by going to the sites myself.

So where does that leave this installation? Perhaps there's an updated fetch.xml somewhere I can use? Can I edit that file to not pull in the Maven artifacts? Or should I do something else.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Do you really need all of the dependencies for all of the optional tasks? I can usually go for a long time using Ant before requireing an optional task, and when I need one, I usually just install its dependencies (such as the junit.jar file) manually.

Also, I am surprised that it is attempting to download from, and not from, because the artifacts are located there. Try changing the value of m2.url in lib/

JBoss In Action
I agree. Here's the link:
subject: Apache Ant Installation - Build Failed
jQuery in Action, 3rd edition