This is often an issue with ivy, one of my least favorite "features" of Ivy. To cure it I delete all the *.lck files in my ivy cache. On my mac:
cd ~/.ivy2 find . -name "*.lck" | xargs rm Best, Erick On Wed, Jul 19, 2017 at 11:21 AM, Nawab Zada Asad Iqbal <khi...@gmail.com> wrote: > Hi > > > I stopped 'ant test' target before it finished, and now whenever I run it > again, it is stuck at 'install-junit4-taskdef'. > > I have tried 'ant clean' but it didn't help. I guessed that it could be > some locking thing in ivy or ant so I set ivy.sync to false in the > common-build.xml > > "<property name="ivy.sync" value="false"/>" > > I also deleted the .cache folder. > > But that didn't help either. > > What should I do? > > When run with '-v', the execution halts at following logs:- > > ... > install-junit4-taskdef: > Overriding previous definition of property "ivy.version" > [ivy:cachepath] using inline mode to resolve > com.carrotsearch.randomizedtesting junit4-ant 2.5.0 (*(public)) > [ivy:cachepath] no resolved descriptor found: launching default resolve > Overriding previous definition of property "ivy.version" > [ivy:cachepath] default: Checking cache for: dependency: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 {} > [ivy:cachepath] don't use cache for > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0: checkModified=true > [ivy:cachepath] tried > /Users/niqbal/.ivy2/local/com.carrotsearch.randomizedtesting/junit4-ant/2.5.0/ivys/ivy.xml > [ivy:cachepath] tried > /Users/niqbal/.ivy2/local/com.carrotsearch.randomizedtesting/junit4-ant/2.5.0/jars/junit4-ant.jar > [ivy:cachepath] local: no ivy file nor artifact found for > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [ivy:cachepath] main: Checking cache for: dependency: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 {} > [ivy:cachepath] main: module revision found in cache: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [ivy:cachepath] :: resolving dependencies :: > com.carrotsearch.randomizedtesting#junit4-ant-caller;working > [ivy:cachepath] confs: [default, master, compile, provided, runtime, > system, sources, javadoc, optional] > [ivy:cachepath] validate = true > [ivy:cachepath] refresh = false > [ivy:cachepath] resolving dependencies for configuration 'default' > [ivy:cachepath] == resolving dependencies for > com.carrotsearch.randomizedtesting#junit4-ant-caller;working [default] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [default->default] > [ivy:cachepath] default: Checking cache for: dependency: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 {default=[default], > master=[master], compile=[compile], provided=[provided], runtime=[runtime], > system=[system], sources=[sources], javadoc=[javadoc], optional=[optional]} > [ivy:cachepath] don't use cache for > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0: checkModified=true > [ivy:cachepath] tried > /Users/niqbal/.ivy2/local/com.carrotsearch.randomizedtesting/junit4-ant/2.5.0/ivys/ivy.xml > [ivy:cachepath] tried > /Users/niqbal/.ivy2/local/com.carrotsearch.randomizedtesting/junit4-ant/2.5.0/jars/junit4-ant.jar > [ivy:cachepath] local: no ivy file nor artifact found for > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [ivy:cachepath] main: Checking cache for: dependency: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 {default=[default], > master=[master], compile=[compile], provided=[provided], runtime=[runtime], > system=[system], sources=[sources], javadoc=[javadoc], optional=[optional]} > [ivy:cachepath] main: module revision found in cache: > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [ivy:cachepath] found > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 in public > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [default->runtime] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [default->compile] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [default->master] > [ivy:cachepath] resolving dependencies for configuration 'master' > [ivy:cachepath] == resolving dependencies for > com.carrotsearch.randomizedtesting#junit4-ant-caller;working [master] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [master->master] > [ivy:cachepath] resolving dependencies for configuration 'compile' > [ivy:cachepath] == resolving dependencies for > com.carrotsearch.randomizedtesting#junit4-ant-caller;working [compile] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [compile->compile] > [ivy:cachepath] resolving dependencies for configuration 'provided' > [ivy:cachepath] == resolving dependencies for > com.carrotsearch.randomizedtesting#junit4-ant-caller;working [provided] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant-caller;working->com.carrotsearch.randomizedtesting#junit4-ant;2.5.0 > [provided->provided] > [ivy:cachepath] == resolving dependencies > com.carrotsearch.randomizedtesting#junit4-ant;2.5.0->org.apache.ant#ant;1.9.7 > [provided->master(*)] > [ivy:cachepath] default: Checking cache for: dependency: > org.apache.ant#ant;1.9.7 {provided=[compile(*), provided(*), runtime(*), > master(*)]} > [ivy:cachepath] don't use cache for org.apache.ant#ant;1.9.7: > checkModified=true > > > > Thanks in advance > Nawab