You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Gintas Grigelionis (JIRA)" <ji...@apache.org> on 2018/03/21 21:58:00 UTC

[jira] [Updated] (IVY-1286) publish task isn't working after inline resolve

     [ https://issues.apache.org/jira/browse/IVY-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gintas Grigelionis updated IVY-1286:
------------------------------------
    Summary: publish task isn't working after inline resolve  (was: publish task ins't working after inline resolve)

> publish task isn'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
>            Priority: Major
>         Attachments: output.txt
>
>
> The publish task isn't working after inline resolve.
> I used the following instructions in my build.xml file:
> 		<ivy:resolve refresh="true" *inline="true"* keep="true" organisation="${pl.organisation}" module="${pl.module}" revision="${ivy.revision}"/>
> 				
> 		<ivy:publish pubrevision="${pl.newVersion}" 
> 			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 was sent by Atlassian JIRA
(v7.6.3#76005)