• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache Ant Installation - Build Failed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

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

probe-m2:

download-m2:
[echo] Downloading to C:\bin\apache-ant-1.8.2\lib
[get] Getting: http://ibiblio.org/maven2//org/apach...aven-artifact-
ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar
[get] To: C:\bin\apache-ant-1.8.2\lib\maven-artifact-ant-2.0.4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibibl
io.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.
4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibibl
io.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.
4-dep.jar
[get] Error opening connection java.io.FileNotFoundException: http://ibibl
io.org/maven2//org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.
4-dep.jar
[get] Can't get http://ibiblio.org/maven2//org/apach...maven-artifact
-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\bin\apache-ant-1.8.2\lib\maven
-artifact-ant-2.0.4-dep.jar

BUILD FAILED
C:\bin\apache-ant-1.8.2\get-m2.xml:85: Can't get http://ibiblio.org/maven2//org/
apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar to C:\bin
\apache-ant-1.8.2\lib\maven-artifact-ant-2.0.4-dep.jar

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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ibiblio.org, and not from repo1.maven.org, because the artifacts are located there. Try changing the value of m2.url in lib/libraries.properties:

reply
    Bookmark Topic Watch Topic
  • New Topic