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 Alan Chaney <al...@writingshow.com> on 2012/02/12 19:53:06 UTC
Inconsistencies with project builds
Hi
I have a pretty complex project managed by Ivy 2.2.0, running under Ant 1.7.
I have one build file which is used for several different projects.
Three of them deliver wars.
They have many steps in them, one of which is to publish to our
corporate repo. Two of them work fine, but the 3rd keeps throwing the
following error, and I can't see what's different about this project
compared to the other two. I've looked at the source, but I don't
understand what is missing - the cache seems to have the required ivy
file in it.
Can anyone make any suggestions - it is true that the project has a conf
that the other two don't use, but I can't see what difference that makes
- there is a resolve step and it resolves all the configurations used.
All the other operations in the build seem to work (compile, junit,
retrieve of dependencies etc.)
Thanks in advance
The settings, build and conf files are pretty large, so I haven't
included them - I will if needed.
Alan
BUILD FAILED
C:\Users\ajc\Documents\Projects\Mechnicality\workspace.corprepo\mollymaster\build-project.xml:647:
com.mechnicality#mechdashboard;working@sammy:
java.lang.IllegalStateException: ivy file not found in cache for
com.mechnicality#mechdashboard;working@sammy: please resolve
dependencies before delivering
(C:\Users\ajc\.ivy2\cache\resolved-com.mechnicality-mechdashboard-working@sammy.xml)
at org.apache.ivy.ant.IvyDeliver.doExecute(IvyDeliver.java:426)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:308)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.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.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: java.lang.IllegalStateException: ivy file not found in cache
for com.mechnicality#mechdashboard;working@sammy: please resolve
dependencies before delivering
(C:\Users\ajc\.ivy2\cache\resolved-com.mechnicality-mechdashboard-working@sammy.xml)
at
org.apache.ivy.core.deliver.DeliverEngine.deliver(DeliverEngine.java:112)
at org.apache.ivy.Ivy.deliver(Ivy.java:586)
at org.apache.ivy.ant.IvyDeliver.doExecute(IvyDeliver.java:423)
... 18 more
--- Nested Exception ---
java.lang.IllegalStateException: ivy file not found in cache for
com.mechnicality#mechdashboard;working@sammy: please resolve
dependencies before delivering
(C:\Users\ajc\.ivy2\cache\resolved-com.mechnicality-mechdashboard-working@sammy.xml)
at
org.apache.ivy.core.deliver.DeliverEngine.deliver(DeliverEngine.java:112)
at org.apache.ivy.Ivy.deliver(Ivy.java:586)
at org.apache.ivy.ant.IvyDeliver.doExecute(IvyDeliver.java:423)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:308)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.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.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
Re: Inconsistencies with project builds [FIXED]
Posted by Alan Chaney <al...@writingshow.com>.
Sorry, everybody
Proved to be a silly typo on my part. My scripts required that the ivy
module name was the same as the eclipse project name, and I'd
incorrectly entered the ivy module name.
Thanks
Alan
On 2/12/2012 10:53 AM, Alan Chaney wrote:
> Hi
>
> I have a pretty complex project managed by Ivy 2.2.0, running under
> Ant 1.7.
>
> I have one build file which is used for several different projects.
> Three of them deliver wars.