• 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

Ant command failing 'ant -f fetch.xml -Ddest=system

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having an issue getting the dependencies validated with my ant install.
I understand I need to run the command 'ant -f fetch.xml -Ddest=system'
The expectation is the Ant installation will be checked for any required jar files and if they are not there then a call will initiate to download the dependencies.

I think my proxy will not let me out to down load from any site. I resolved a few errors by downloading the libs manually and moving them to the Ant Lib.
but Now,
I am stuck on this error. Any help would be appreciated.
<edited> → ant -f fetch.xml -Ddest=system
Buildfile: C:\Program Files\apache-ant-1.9.2\fetch.xml

pick-dest:
[echo] Downloading to C:\Program Files\apache-ant-1.9.2\lib

probe-m2:

download-m2:

dont-validate-m2-checksum:

validate-m2-checksum:

checksum-mismatch:

checksum-match:

get-m2:

macros:

init:

logging:
[artifact:dependencies] Downloading: log4j/log4j/1.2.14/log4j-1.2.14.pom
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'log4j:log4j:jar': Error getting POM for 'log4j:log4j' from the repository: Error transferring file
[artifact:dependencies] log4j:log4j:pom:1.2.14
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repo1.maven.org/maven2/),
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies] log4j:log4j:jar:1.2.14
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repo1.maven.org/maven2/),
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) unspecified:unspecified:jar:0.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] Connection timed out: connect
[artifact:dependencies]

BUILD FAILED
C:\Program Files\apache-ant-1.9.2\fetch.xml:205: The following error occurred while executing this line:
C:\Program Files\apache-ant-1.9.2\fetch.xml:116: Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'log4j:log4j:jar': Error getting POM for 'log4j:log4j' from the repository: Error transferring file
log4j:log4j:pom:1.2.14

from the specified remote repositories:
remote (http://repo1.maven.org/maven2/),
central (http://repo1.maven.org/maven2)

log4j:log4j:jar:1.2.14

from the specified remote repositories:
remote (http://repo1.maven.org/maven2/),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) unspecified:unspecified:jar:0.0



Total time: 21 seconds
 
Tom Di Dio
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ran the ant -diagnostics


edited] → ant -diagnostics
------- Ant diagnostics report -------
Apache Ant(TM) version 1.9.2 compiled on July 8 2013

-------------------------------------------
Implementation Version
-------------------------------------------
core tasks : 1.9.2 in file:/C:/Program%20Files/apache-ant-1.9.2/lib/ant.jar

-------------------------------------------
ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
ant.java.version: 1.7
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: C:\Program Files\apache-ant-1.9.2\lib\ant.jar
ant.home: C:/Program Files/apache-ant-1.9.2

-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:/Program Files/apache-ant-1.9.2
ant-antlr.jar (11565 bytes)
ant-apache-bcel.jar (15057 bytes)
ant-apache-bsf.jar (9745 bytes)
ant-apache-log4j.jar (8590 bytes)
ant-apache-oro.jar (9709 bytes)
ant-apache-regexp.jar (9569 bytes)
ant-apache-resolver.jar (9640 bytes)
ant-apache-xalan2.jar (8100 bytes)
ant-commons-logging.jar (9718 bytes)
ant-commons-net.jar (91264 bytes)
ant-jai.jar (28222 bytes)
ant-javamail.jar (13766 bytes)
ant-jdepend.jar (13819 bytes)
ant-jmf.jar (12276 bytes)
ant-jsch.jar (46512 bytes)
ant-junit.jar (112850 bytes)
ant-junit4.jar (13065 bytes)
ant-launcher.jar (18333 bytes)
ant-netrexx.jar (16270 bytes)
ant-swing.jar (13242 bytes)
ant-testutil.jar (20997 bytes)
ant.jar (2000557 bytes)
log4j-1.2.14.jar (367444 bytes)
log4j-1.2.16.jar (481535 bytes)
maven-artifact-ant-2.0.4-dep.jar (887507 bytes)

-------------------------------------------
USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Users\tdidi00
No such directory.

-------------------------------------------
Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.Logger
scp : Missing dependency com.jcraft.jsch.Logger
sshsession : Missing dependency com.jcraft.jsch.Logger
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to use it

-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: unknown
Namespace-aware parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: unknown

-------------------------------------------
XSLT Processor information
-------------------------------------------
XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: unknown

-------------------------------------------
System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : C:\Program Files\Java\jdk1.7.0_25\jre\bin
java.vm.version : 23.25-b01
ant.library.dir : C:/Program Files/apache-ant-1.9.2/lib
java.vm.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg : sun.io
user.script :
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 1
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\Program Files\apache-ant-1.9.2
java.runtime.version : 1.7.0_25-b17
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Program Files\Java\jdk1.7.0_25\jre\lib\endorsed
os.arch : amd64
java.io.tmpdir : C:\Users\tdidi00\AppData\Local\Temp\tdidi00_MobaXterm6.3\tmp\
line.separator :

java.vm.specification.vendor : Oracle Corporation
user.variant :
os.name : Windows 7
ant.home : C:/Program Files/apache-ant-1.9.2
sun.jnu.encoding : Cp1252
cygwin.user.home : C:/Users/tdidi00/Documents/MobaXterm/home
java.library.path : C:\Program Files\Java\jdk1.7.0_25\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Users\tdidi00\AppData\Local\Temp\tdidi00_MobaXterm6.3\bin;C:\Users\tdidi00\AppData\Local\Temp\tdidi00_MobaXterm6.3\bin;C:\Windows;C:\Windows\system32;C:\PROGRAM FILES (X86)\INTEL\ICLS CLIENT;C:\PROGRAM FILES\INTEL\ICLS CLIENT;C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X86;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X64;C:\PROGRAM FILES\INTEL\WIFI\BIN;C:\PROGRAM FILES\COMMON FILES\INTEL\WIRELESSCOMMON;C:\Program Files\ThinkPad\Bluetooth Software;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\CREDANT\Shield v6.8.2;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Attachmate\EXTRA!;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Program Files\apache-ant-1.9.2\bin;.
java.specification.name : Java Platform API Specification
java.class.version : 51.0
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
os.version : 6.1
user.home : C:\Users\tdidi00
user.timezone : America/Phoenix
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.specification.version : 1.7
file.encoding : Cp1252
user.name : tdidi00
java.class.path : C:/Program Files/apache-ant-1.9.2/lib/ant-launcher.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-antlr.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-bcel.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-bsf.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-log4j.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-oro.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-regexp.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-resolver.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-apache-xalan2.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-commons-logging.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-commons-net.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-jai.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-javamail.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-jdepend.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-jmf.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-jsch.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-junit.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-junit4.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-launcher.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-netrexx.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-swing.jar;C:\Program Files\apache-ant-1.9.2\lib\ant-testutil.jar;C:\Program Files\apache-ant-1.9.2\lib\ant.jar;C:\Program Files\apache-ant-1.9.2\lib\log4j-1.2.14.jar;C:\Program Files\apache-ant-1.9.2\lib\log4j-1.2.16.jar;C:\Program Files\apache-ant-1.9.2\lib\maven-artifact-ant-2.0.4-dep.jar;C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar
java.vm.specification.version : 1.7
sun.arch.data.model : 64
java.home : C:\Program Files\Java\jdk1.7.0_25\jre
sun.java.command : org.apache.tools.ant.launch.Launcher -cp -diagnostics
java.specification.vendor : Oracle Corporation
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode
java.version : 1.7.0_25
java.ext.dirs : C:\Program Files\Java\jdk1.7.0_25\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path : C:\Program Files\Java\jdk1.7.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_25\jre\classes
java.vendor : Oracle Corporation
file.separator : \
java.vendor.url.bug : http://bugreport.sun.com/bugreport/
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : amd64

-------------------------------------------
Temp dir
-------------------------------------------
Temp dir is C:\Users\tdidi00\AppData\Local\Temp\tdidi00_MobaXterm6.3\tmp\
Temp dir is writeable
Temp dir alignment with system clock is 274 ms

-------------------------------------------
Locale information
-------------------------------------------
Timezone Mountain Standard Time offset=-25200000

-------------------------------------------
Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection
 
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
Looks to me like you are having a problem with connecting to the Maven central repo. Can you access it view your browser (try the url http://central.maven.org/maven2/log4j/). Do you have a proxy configured for your browser? If so, you will also have to configure a proxy for Maven (see http://maven.apache.org/guides/mini/guide-proxies.html)
 
Tom Di Dio
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,

The proxy issue was a good lead.
I used an ant flag.. -autoproxy and it worked well.
I apologize for the long delay but do appreciate the advice.

Till next time.
Thanks again
Tom
 
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic