ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Riccardo (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (IVY-964) ivy:publish depends on ivy:retrieve
Date Wed, 07 Sep 2011 15:58:09 GMT

    [ https://issues.apache.org/jira/browse/IVY-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099049#comment-13099049
] 

Riccardo edited comment on IVY-964 at 9/7/11 3:56 PM:
------------------------------------------------------

I have the same issue with Ivy 2.2.0 and the following task snippet:

<ivy:info file="${ivyfile}"/>  <!-- this sets ivy.module, ivy.organisation etc. -->
<ivy:publish artifactspattern="${resolve.dir}/${pattern.artifact.retrieve}"
   srcivypattern="${resolve.dir}/[module].xml"
   pubrevision="${ivy.revision}"
   resolver="local"
   status="milestone"
   overwrite="true"/>

I can fix it calling <ivy:resolve file=${ivyfile}/> instead of <ivy:info> above.
But it would be cleaner if I wouldn't be forced to resolve so much.

      was (Author: ricfos):
    I have the same issue with the folling task snippet:

<ivy:info file="${ivyfile}"/>  <!-- this sets ivy.module, ivy.organisation etc. -->
<ivy:publish artifactspattern="${resolve.dir}/${pattern.artifact.retrieve}"
   srcivypattern="${resolve.dir}/[module].xml"
   pubrevision="${ivy.revision}"
   resolver="local"
   status="milestone"
   overwrite="true"/>

I can fix it calling <ivy:resolve file=${ivyfile}/> instead of <ivy:info> above.
But it would be cleaner if I wouldn't be forced to resolve so much.
  
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message