[
https://issues.apache.org/jira/browse/IVY-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689095#action_12689095
]
Francisco Peredo commented on IVY-964:
--------------------------------------
I had to add a dummy call to ivy:retrieve to make ivy:publish work, and I am
using the final 2.0
> ivy:publish depends on ivy:retrieve
> -----------------------------------
>
> Key: IVY-964
> URL: https://issues.apache.org/jira/browse/IVY-964
> Project: Ivy
> Issue Type: Bug
> Affects Versions: 2.0-RC1
> Environment: Windows, JDK1.4.2
> Reporter: Ferry Tanu
> Priority: Trivial
>
> calling the following task, without ivy:retrieve:
> <ivy:publish organisation="your_module_org"
> module="your_module_name"
> revision="your module_revision"
>
> artifactspattern="${distrib.dir}/[artifact].[ext]"
> resolver="local"
> pubrevision="${app.version}"
> status="release"/>
> will generate a build failed:
> C:\workspace\sources\build.xml:60: your_module_org#your_module_name;1.0.0:
> java.lang.IllegalStateException: ivy file not found in cache for
> your_module_org#your_module_name
> ;1.0.0: please resolve dependencies before delivering (C:\Documents
> and
> Settings\user\.ivy2\cache\resolved-your_module_org-your_module_name-1.0.0.xml)
> if ivy:retrieve called before ivy:publish, this error will not occurred.
> Note: remove the organisation, module, and revision attribute in ivy:publish,
> if you want to call ivy:retrieve beforehand
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.