Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CD6CD03D for ; Wed, 7 Nov 2012 13:59:17 +0000 (UTC) Received: (qmail 48278 invoked by uid 500); 7 Nov 2012 13:59:17 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 47801 invoked by uid 500); 7 Nov 2012 13:59:13 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 47394 invoked by uid 99); 7 Nov 2012 13:59:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 13:59:12 +0000 Date: Wed, 7 Nov 2012 13:59:12 +0000 (UTC) From: "Dan Leong (JIRA)" To: notifications@ant.apache.org Message-ID: <1288291615.80499.1352296752185.JavaMail.jiratomcat@arcas> In-Reply-To: <166507020.53277.1302639605672.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IVY-1286) publish task ins't working after inline resolve MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492351#comment-13492351 ] Dan Leong commented on IVY-1286: -------------------------------- This issue is affecting our builds too. Ivy 2.2.0, Ant 1.8.4 and Java 1.6.0_31 The problem for us seemed to be an inline ivy:resolve in our run-tests target in order to load ant-contrib and an internal task helper. We were doing:- And we replaced it with Alternatively we found that adding a "build-tools" config in our ivy.xml allowed us to remove the inline requirement. Not sure if this is a bug or intentional behaviour, but any chance of this getting worked on soon? Or mentioned in the docs if we're using the tool wrongly... > publish task ins't working after inline resolve > ----------------------------------------------- > > Key: IVY-1286 > URL: https://issues.apache.org/jira/browse/IVY-1286 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.2.0 > Environment: Windwos > Reporter: Bart Dooms > Attachments: output.txt > > > The publish task isn't working after inline resolve. > I used the following instructions in my build.xml file: > > > resolver="localRepository" forcedeliver="true" update="true" merge="false" overwrite="true" > status="Baselined" srcivypattern="${ivy.default.cache.dir}/${ivy.cache.default.ivy.pattern}" > /> > The resolve task is not taking into account the attribute *keep=true*, because in the cache I found the follwoing file: resolved-_[organisation]_-_[Module]_-*caller-working*.xml > And even the publish task is seeking for resolved-_[organisation]_-_[Module]_-*caller-working*_@computerName_.xml > As you can see in the error track trace: > D:\SVN\trunk\repository\build.xml:203: SYS#PythonApi-caller;working@P100003A1: java.lang.IllegalStateException: ivy file > not found in cache for SYS#PythonApi-caller;working@P100003A1: please resolve dependencies before delivering (d:\tryout > \Proba-V\cache\resolved-SYS-PythonApi-caller-working@P100003A1.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:291) > at sun.reflect.GeneratedMethodAccessor5.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:390) > at org.apache.tools.ant.Target.performTasks(Target.java:411) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) > at org.apache.tools.ant.Project.executeTarget(Project.java:1366) > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > at org.apache.tools.ant.Project.executeTargets(Project.java:1249) > at org.apache.tools.ant.Main.runBuild(Main.java:801) > at org.apache.tools.ant.Main.startAnt(Main.java:218) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira