ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snowflake <needsmores...@gmail.com>
Subject ivy:install fails due to "impossible to put metadata file in cache"
Date Thu, 04 Jun 2009 05:02:49 GMT
Hi,

I am not sure if this is  a bug, or if i'm doing something wrong.  I get the
following error (NPE) when trying to install several projects into our local
repository.  I have tried googling for this issue and looked at JIRA to no
avail.  My install tasks which have the same issue:

<ivy:install settingsRef="basic.settings" organisation="jcs" module="jcs"
revision="1.3" from="${from.resolver}" to="${to.resolver}" transitive="true"
overwrite="true"  />
<ivy:install settingsRef="basic.settings" organisation="org.hibernate"
module="hibernate-entitymanager" revision="3.4.0.GA" from="${from.resolver}"
to="${to.resolver}" transitive="true" overwrite="true" haltonfailure="false"
/>
<ivy:install settingsRef="basic.settings" organisation="org.hibernate"
module="hibernate-core" revision="3.3.0.GA" from="${from.resolver}"
to="${to.resolver}" transitive="true" overwrite="true" haltonfailure="false"
/>
<ivy:install settingsRef="basic.settings" organisation="org.hibernate"
module="hibernate-annotations" revision="3.4.0.GA" from="${from.resolver}"
to="${to.resolver}" transitive="true" overwrite="true" />
(as well as pretty much all JUNG libraries)

------------------
THE ERROR
------------------

[ivy:install] impossible to put metadata file in cache:
http://repo1.maven.org/maven2/jcs/jcs/1.3/jcs-1.3.pom (1.3).
java.io.FileNotFoundException:
/home/sam/work/ivy/ivycache/jcs/jcs/ivy-1.3.xml.original (No such file or
directory)
[ivy:install]
[ivy:install] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/home/sam/Apps/ivy/apache-ivy-2.1.0-rc1/settings/default-build.xml:861:
impossible to install jcs#jcs;1.3: java.lang.NullPointerException
at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:109)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
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:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at
org.apache.ivy.plugins.repository.file.FileRepository.copy(FileRepository.java:75)
at
org.apache.ivy.plugins.repository.file.FileRepository.put(FileRepository.java:58)
at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:226)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:209)
at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:150)
at org.apache.ivy.Ivy.install(Ivy.java:526)
at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:101)
... 17 more
--- Nested Exception ---
java.lang.NullPointerException
at
org.apache.ivy.plugins.repository.file.FileRepository.copy(FileRepository.java:75)
at
org.apache.ivy.plugins.repository.file.FileRepository.put(FileRepository.java:58)
at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:226)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:209)
at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:150)
at org.apache.ivy.Ivy.install(Ivy.java:526)
at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:101)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
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:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


thanks in advance for any help or guidance.

-Sam

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message