I tried that but my logs still didn't show up. To test if it really worked, I disabled my Internet connection and tried it, which failed. Did I miss anything?
Output below: $ant -Doffline=yes test Buildfile: build.xml ivy-download: ivy-init-dirs: ivy-probe-antlib: ivy-init-antlib: ivy-init: [ivy:configure] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ :: :: loading settings :: file = /Users/rschmidt/workspace/hadoop-mapreduce-trunk/ivy/ivysettings.xml ivy-resolve-common: [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] You probably access the destination server through a proxy server that is not well configured. [ivy:resolve] [ivy:resolve] :: problems summary :: [ivy:resolve] :::: WARNINGS [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core/0.22.0-SNAPSHOT/maven-metadata.xml [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core/0.22.0-SNAPSHOT/hadoop-core-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core/0.22.0-SNAPSHOT/hadoop-core-0.22.0-SNAPSHOT.jar [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.22.0-SNAPS HOT/hadoop-core-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.22.0-SNAPS HOT/hadoop-core-0.22.0-SNAPSHOT.jar [ivy:resolve] module not found: org.apache.hadoop#hadoop-core;0.22.0-SNAPSHOT [ivy:resolve] ==== apache-snapshot: tried [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-core/0.22.0-SNAPSHOT/hadoop-core-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-core;0.22.0-SNAPSHOT!hadoop-core.jar: [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-core/0.22.0-SNAPSHOT/hadoop-core-0.22.0-SNAPSHOT.jar [ivy:resolve] ==== maven2: tried [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.22.0-SNAPSHOT/ hadoop-core-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-core;0.22.0-SNAPSHOT!hadoop-core.jar: [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.22.0-SNAPSHOT/ hadoop-core-0.22.0-SNAPSHOT.jar [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core-test/0.22.0-SNAPSHOT/maven-metadata.xml [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core-test/0.22.0-SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-core-test/0.22.0-SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.jar [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core-test/0.22.0- SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core-test/0.22.0- SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.jar [ivy:resolve] module not found: org.apache.hadoop#hadoop-core-test;0.22.0-SNAPSHOT [ivy:resolve] ==== apache-snapshot: tried [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-core-test/0.22.0-SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-core-test;0.22.0-SNAPSHOT!hadoop-core-test.jar: [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-core-test/0.22.0-SNAPSHOT/hadoop-core-test-0.22.0-SNAPSHOT.jar [ivy:resolve] ==== maven2: tried [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core-test/0.22.0-SNAP SHOT/hadoop-core-test-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-core-test;0.22.0-SNAPSHOT!hadoop-core-test.jar: [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core-test/0.22.0-SNAP SHOT/hadoop-core-test-0.22.0-SNAPSHOT.jar [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/maven-metadata.xml [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repository.apache.org not found. url=https://repository.apache.org/content/repositories/snapshots/org/apache/ hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-SNAPSHOT.jar [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPS HOT/hadoop-hdfs-0.22.0-SNAPSHOT.pom [ivy:resolve] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPS HOT/hadoop-hdfs-0.22.0-SNAPSHOT.jar [ivy:resolve] module not found: org.apache.hadoop#hadoop-hdfs;0.22.0-SNAPSHOT [ivy:resolve] ==== apache-snapshot: tried [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-hdfs;0.22.0-SNAPSHOT!hadoop-hdfs.jar: [ivy:resolve] https://repository.apache.org/content/repositories/snapshots/org/apache/hado op/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-SNAPSHOT.jar [ivy:resolve] ==== maven2: tried [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/ hadoop-hdfs-0.22.0-SNAPSHOT.pom [ivy:resolve] -- artifact org.apache.hadoop#hadoop-hdfs;0.22.0-SNAPSHOT!hadoop-hdfs.jar: [ivy:resolve] http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/ hadoop-hdfs-0.22.0-SNAPSHOT.jar [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: org.apache.hadoop#hadoop-core;0.22.0-SNAPSHOT: not found [ivy:resolve] :: org.apache.hadoop#hadoop-core-test;0.22.0-SNAPSHOT: not found [ivy:resolve] :: org.apache.hadoop#hadoop-hdfs;0.22.0-SNAPSHOT: not found [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS On 3/17/10 11:14 PM, "Amar Kamat" <[email protected]> wrote: > Use -Doffline=yes switch while running the tests. > Amar > > On 3/18/10 11:32 AM, "Rodrigo Schmidt" <[email protected]> wrote: > > > > How do I disable the ivy download to run unit tests? I need to replace > hadoop-core.jar for one I created with some extra logging to debug a unit test > for mapreduce. > > Right now I'm just erasing some lines from build.xml, but I'm quite sure there > is an easier way to do that. > > Thanks, > Rodrigo >
