You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by ekta goel <ek...@gmail.com> on 2007/10/25 08:16:29 UTC

commons-lang.jar is missing.. build failed

Hi

Sir, I want to show you the output of the build.xml. I picked up the xml
from the tuorial present on the site.

http://repo1.maven.org/maven2/apache..... link is accessing through this
build. So apache folder is not present in the maven2 and build get failed
aas it could not get the commons-lang.jar.


I get stucked.. Help me out.

Output of build.xml:


[ivy:cachepath] setting 'ivy.conf.dir' to 'jar:file:/E:/Ekta/apache-
ant-1.7.0-bi
n.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubating.jar!
/org/apache/ivy/core/settings'
[ivy:cachepath] setting 'ivy.default.ivy.user.dir' to 'C:\Documents and
Settings
\Administrator\.ivy2'
[ivy:cachepath] settings loaded (171ms)
[ivy:cachepath]         default cache: C:\Documents and
Settings\Administrator\.
ivy2\cache
[ivy:cachepath]         default resolver: default
[ivy:cachepath]         default latest strategy: latest-revision
[ivy:cachepath]         default conflict manager: latest-revision
[ivy:cachepath]         circular dependency strategy: warn
[ivy:cachepath]         validate: true
[ivy:cachepath]         check up2date: true
[ivy:cachepath]         cache ivy pattern:
[organisation]/[module]/ivy-[revision
].xml
[ivy:cachepath]         cache artifact pattern:
[organisation]/[module]/[type]s/
[artifact]-[revision](.[ext])
[ivy:cachepath]         -- 5 resolvers:
[ivy:cachepath]         main [chain] [shared, public]
[ivy:cachepath]                 return first: false
[ivy:cachepath]                 dual: true
[ivy:cachepath]                 -> shared
[ivy:cachepath]                 -> public
[ivy:cachepath]         public [ibiblio]
[ivy:cachepath]                 changingPattern: null
[ivy:cachepath]                 changingMatcher: exactOrRegexp
[ivy:cachepath]                 m2compatible: true
[ivy:cachepath]                 ivy patterns:
[ivy:cachepath]
http://repo1.maven.org/maven2/[organisat
ion]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:cachepath]                 artifact patterns:
[ivy:cachepath]
http://repo1.maven.org/maven2/[organisat
ion]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:cachepath]                 repository: public
[ivy:cachepath]                 root: http://repo1.maven.org/maven2/
[ivy:cachepath]                 pattern:
[organisation]/[module]/[revision]/[art
ifact]-[revision](-[classifier]).[ext]
[ivy:cachepath]                 usepoms: true
[ivy:cachepath]         local [file]
[ivy:cachepath]                 changingPattern: null
[ivy:cachepath]                 changingMatcher: exactOrRegexp
[ivy:cachepath]                 m2compatible: false
[ivy:cachepath]                 ivy patterns:
[ivy:cachepath]                         C:\Documents and
Settings\Administrator\
.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
[ivy:cachepath]                 artifact patterns:
[ivy:cachepath]                         C:\Documents and
Settings\Administrator\
.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
[ivy:cachepath]                 repository: local
[ivy:cachepath]         shared [file]
[ivy:cachepath]                 changingPattern: null
[ivy:cachepath]                 changingMatcher: exactOrRegexp
[ivy:cachepath]                 m2compatible: false
[ivy:cachepath]                 ivy patterns:
[ivy:cachepath]                         C:\Documents and
Settings\Administrator\
.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
[ivy:cachepath]                 artifact patterns:
[ivy:cachepath]                         C:\Documents and
Settings\Administrator\
.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
[ivy:cachepath]                 repository: shared
[ivy:cachepath]         default [chain] [local, main]
[ivy:cachepath]                 return first: true
[ivy:cachepath]                 dual: false
[ivy:cachepath]                 -> local
[ivy:cachepath]                 -> main
Setting project property: ivy.retrieve.pattern -> ${ivy.lib.dir
}/[artifact]-[rev
ision].[ext]
Setting project property: ivy.home -> C:\Documents and
Settings\Administrator\.i
vy2
Setting project property: ivy.build.artifacts.dir -> E:\Ekta\apache-
ivy-2.0.0-al
pha2-incubating-bin-with-deps\ivy/build/artifacts
Setting project property: ivy.resolve.default.type.filter -> *
Setting project property: ivy.default.conf.dir ->
jar:file:/E:/Ekta/apache-ant-1
.7.0-bin.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubati
ng.jar!/org/apache/ivy/core/settings
Setting project property: ivy.cache.dir -> C:\Documents and
Settings\Administrat
or\.ivy2\cache
Setting project property: ivy.buildlist.ivyfilepath -> ivy.xml
Setting project property: ivy.publish.src.artifacts.pattern -> ${
ivy.distrib.dir
}/[type]s/[artifact]-[revision].[ext]
Setting project property: ivy.checksums -> sha1,md5
Setting project property: ivy.status -> integration
Setting project property: ivy.settings.dir -> jar:file:/E:/Ekta/apache-
ant-1.7.0
-bin.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubating.j
ar!/org/apache/ivy/core/settings
Setting project property: ivy.resolver.default.check.modified -> false
Setting project property: ivy.default.settings.dir ->
jar:file:/E:/Ekta/apache-a
nt-1.7.0-bin.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incu
bating.jar!/org/apache/ivy/core/settings
Setting project property: ivy.project.dir -> E:\Ekta\apache-
ivy-2.0.0-alpha2-inc
ubating-bin-with-deps\ivy
Setting project property: ivy.default.always.check.exact.revision -> true
Setting project property: ivy.conf.url -> jar:file:/E:/Ekta/apache-
ant-1.7.0-bin
.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubating.jar!/
org/apache/ivy/core/settings/ivysettings-default-chain.xml
Setting project property: ivy.settings.url -> jar:file:/E:/Ekta/apache-
ant-1.7.0
-bin.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubating.j
ar!/org/apache/ivy/core/settings/ivysettings-default-chain.xml
Setting project property: ivy.default.ivy.user.dir -> C:\Documents and
Settings\
Administrator\.ivy2
Setting project property: ivy.conf.dir -> jar:file:/E:/Ekta/apache-
ant-1.7.0-bin
.tar/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ivy-
2.0.0-alpha2-incubating.jar!/
org/apache/ivy/core/settings
Setting project property: ivy.configurations -> *
Setting project property: ivy.log.modules.in.use -> false
Setting project property: ivy.deliver.ivy.pattern -> ${ivy.distrib.dir
}/[type]s/
[artifact]-[revision].[ext]
Setting project property: ivy.settings.file -> ivysettings.xml
Setting project property: ivy.lib.dir -> E:\Ekta\apache-
ivy-2.0.0-alpha2-incubat
ing-bin-with-deps\ivy/lib
Setting project property: ivy.dep.file -> ivy.xml
Setting project property: ivy.report.output.pattern ->
[organisation]-[module]-[
conf].[ext]
Setting project property: ivy.distrib.dir -> E:\Ekta\apache-
ivy-2.0.0-alpha2-inc
ubating-bin-with-deps\ivy/distrib
[ivy:cachepath] parameter found as attribute value: ivy.organisation=apache
[ivy:cachepath] parameter found as attribute value: ivy.module=commons-lang
[ivy:cachepath] parameter not found: ivy.resolved.file
[ivy:cachepath] calculating configurations to resolve
[ivy:cachepath] module not yet resolved, all confs still need to be resolved
[ivy:cachepath] using inline mode to resolve apache commons-lang 2.1 (*)
[ivy:cachepath] no resolved descriptor found: launching default resolve
[ivy:cachepath] parameter found as attribute value: ivy.configurations=*
[ivy:cachepath] parameter found as ivy variable:
ivy.resolve.default.type.filter
=*
[ivy:cachepath] default: no latest strategy defined: using default
[ivy:cachepath] local: no namespace defined: using system
[ivy:cachepath]         no ivy file in cache for [ apache | commons-lang |
2.1 ]
: tried C:\Documents and
Settings\Administrator\.ivy2\cache\apache\commons-lang\
ivy-2.1.xml
[ivy:cachepath] local: no latest strategy defined: using default
[ivy:cachepath]          trying C:\Documents and
Settings\Administrator\.ivy2/lo
cal/apache/commons-lang/2.1/ivys/ivy.xml
[ivy:cachepath]                 tried C:\Documents and
Settings\Administrator\.i
vy2/local/apache/commons-lang/2.1/ivys/ivy.xml
[ivy:cachepath]         local: resource not reachable for [ apache |
commons-lan
g | 2.1 ]: res=C:\Documents and
Settings\Administrator\.ivy2\local\apache\common
s-lang\2.1\ivys\ivy.xml
[ivy:cachepath]          trying C:\Documents and
Settings\Administrator\.ivy2/lo
cal/apache/commons-lang/2.1/jars/commons-lang.jar
[ivy:cachepath]                 tried C:\Documents and
Settings\Administrator\.i
vy2/local/apache/commons-lang/2.1/jars/commons-lang.jar
[ivy:cachepath]         local: resource not reachable for [ apache |
commons-lan
g | 2.1 ]: res=C:\Documents and
Settings\Administrator\.ivy2\local\apache\common
s-lang\2.1\jars\commons-lang.jar
[ivy:cachepath]         local: no ivy file nor artifact found for [ apache |
com
mons-lang | 2.1 ]
[ivy:cachepath] main: no latest strategy defined: using default
[ivy:cachepath] shared: no namespace defined: using system
[ivy:cachepath]         no ivy file in cache for [ apache | commons-lang |
2.1 ]
: tried C:\Documents and
Settings\Administrator\.ivy2\cache\apache\commons-lang\
ivy-2.1.xml
[ivy:cachepath] shared: no latest strategy defined: using default
[ivy:cachepath]          trying C:\Documents and
Settings\Administrator\.ivy2/sh
ared/apache/commons-lang/2.1/ivys/ivy.xml
[ivy:cachepath]                 tried C:\Documents and
Settings\Administrator\.i
vy2/shared/apache/commons-lang/2.1/ivys/ivy.xml
[ivy:cachepath]         shared: resource not reachable for [ apache |
commons-la
ng | 2.1 ]: res=C:\Documents and
Settings\Administrator\.ivy2\shared\apache\comm
ons-lang\2.1\ivys\ivy.xml
[ivy:cachepath]          trying C:\Documents and
Settings\Administrator\.ivy2/sh
ared/apache/commons-lang/2.1/jars/commons-lang.jar
[ivy:cachepath]                 tried C:\Documents and
Settings\Administrator\.i
vy2/shared/apache/commons-lang/2.1/jars/commons-lang.jar
[ivy:cachepath]         shared: resource not reachable for [ apache |
commons-la
ng | 2.1 ]: res=C:\Documents and
Settings\Administrator\.ivy2\shared\apache\comm
ons-lang\2.1\jars\commons-lang.jar
[ivy:cachepath]         shared: no ivy file nor artifact found for [ apache
| co
mmons-lang | 2.1 ]
[ivy:cachepath] public: no namespace defined: using system
[ivy:cachepath]         no ivy file in cache for [ apache | commons-lang |
2.1 ]
: tried C:\Documents and
Settings\Administrator\.ivy2\cache\apache\commons-lang\
ivy-2.1.xml
[ivy:cachepath] public: no latest strategy defined: using default
[ivy:cachepath]          trying
http://repo1.maven.org/maven2/apache/commons-lan
g/2.1/commons-lang-2.1.pom
[ivy:cachepath]                 tried
http://repo1.maven.org/maven2/apache/commo
ns-lang/2.1/commons-lang-2.1.pom
[ivy:cachepath] ERROR: Server access Error: Connection timed out: connect
url=ht
tp://repo1.maven.org/maven2/apache/commons-lang/2.1/commons-lang-2.1.pom
[ivy:cachepath]         public: resource not reachable for [ apache |
commons-la
ng | 2.1 ]: res=
http://repo1.maven.org/maven2/apache/commons-lang/2.1/commons-la
ng-2.1.pom
[ivy:cachepath]          trying
http://repo1.maven.org/maven2/apache/commons-lan
g/2.1/commons-lang-2.1.jar
[ivy:cachepath]                 tried
http://repo1.maven.org/maven2/apache/commo
ns-lang/2.1/commons-lang-2.1.jar
[ivy:cachepath] ERROR: Server access Error: Connection timed out: connect
url=ht
tp://repo1.maven.org/maven2/apache/commons-lang/2.1/commons-lang-2.1.jar
[ivy:cachepath]         public: resource not reachable for [ apache |
commons-la
ng | 2.1 ]: res=
http://repo1.maven.org/maven2/apache/commons-lang/2.1/commons-la
ng-2.1.jar
[ivy:cachepath]         public: no ivy file nor artifact found for [ apache
| co
mmons-lang | 2.1 ]

BUILD FAILED
E:\Ekta\apache-ivy-2.0.0-alpha2-incubating-bin-with-deps\ivy\build.xml:100:impo
ssible to resolve dependencies: resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:290)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
        at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck
(IvyPostResolveT
ask.java:124)
        at org.apache.ivy.ant.IvyCachePath.doExecute(IvyCachePath.java:53)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(
DispatchUtils.jav
a:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java
:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:214)
        ... 21 more
--- Nested Exception ---
resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:214)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
        at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck
(IvyPostResolveT
ask.java:124)
        at org.apache.ivy.ant.IvyCachePath.doExecute(IvyCachePath.java:53)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:281)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(
DispatchUtils.jav
a:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java
:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)