[
https://issues.apache.org/jira/browse/IVY-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Coene resolved IVY-1635.
--------------------------------
Resolution: Not A Problem
ok, thank you for the feedback.
If you feel the documentation should be improved, please reopen this ticket.
> [SOLVED] attributes of inline ivy:resolve not being re-used by post-resolve
> tasks
> ---------------------------------------------------------------------------------
>
> Key: IVY-1635
> URL: https://issues.apache.org/jira/browse/IVY-1635
> Project: Ivy
> Issue Type: Question
> Affects Versions: 2.5.0
> Reporter: jswdevteam
> Priority: Major
>
> I tried to have one inline *resolve* task followed by several *retrieve*
> tasks.
> Example:
> {{<ivy:resolve resolveId="resolve1" inline="true" organisation="myorg"
> module="mymod" revision="${mymod.revision}" settingsRef="settings1"/>}}
> {{<ivy:retrieve resolveId="resolve1" pattern="external/lib/[artifact].[ext]"
> type="lib" />}}
> {{<ivy:retrieve resolveId="resolve1" pattern="external/include/mymod.[ext]"
> type="header"/>}}
>
> I was expecting that the retrieve tasks would reuse the informations of the
> resolve previously done. But I get this error:
> ??no organisation provided for ivy cache task: It can either be set
> explicitly via the attribute 'organisation' or via 'ivy.organisation'
> property *or a prior call to <resolve/>*??
>
> If I don't call <ivy:resolve> and repeat all the attributes ({_}inline{_},
> {_}organization{_}, {_}module{_}, {_}revision{_}, etc.) {*}to each retrieve
> task{*}, then it works.
> However I would think it more logical to resolve once and retrieve as many
> time as needed using the same resolve info.
> *EDIT:* Solved, see comment
--
This message was sent by Atlassian Jira
(v8.20.10#820010)