This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Apache Ant Installation - Build Failed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
  • 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:

 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic