You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by ferry97 <vr...@yahoo.com> on 2008/10/29 09:22:21 UTC

No organisation provided error ??

Hi,
I'm new with Ivy ... 

I'm trying to do a simple publish task and got the following error :

"no organisation provided for ivy publish task: It can either be set
explicitely via the attribute 'orga
nisation' or via 'ivy.organisation' property or a prior call to <resolve/>"

and this is my simple publish target :

   <target name="publish" description="--> compile test and publish this
project in the local ivy repository">
        <property name="revision" value="${app.version}"/>
		<ivy:publish artifactspattern="${distrib.dir}/[artifact].[ext]" 
			           resolver="local"
			           pubrevision="${app.version}" 
			           status="release"/>
        <echo message="project ${ant.project.name} released with version
${app.version}" />
    </target>	

Anyone know what is wrong ?

Thanks!

-- 
View this message in context: http://www.nabble.com/No-organisation-provided-error----tp20222565p20222565.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: No organisation provided error ??

Posted by ferry97 <vr...@yahoo.com>.
Hi guys,

Thank you for the response, and pardon me for not giving a complete
description. I already had the ivy.xml file with the info organisation in
it.
I just found out the problem, and I have no idea whether it's a bug in ivy
or it was intended to.

The solution only to add the ivy:retrieve before calling the ivy:publish.

    <target name="resolve" description="retreive dependencies with ivy">
        <ivy:retrieve />
    </target>

and add the publish dependency to resolve.

It's quite surprising that ivy:publish will not working properly without the
calling to ivy:retrieve, my assumption, every ivy:<action> should be an
atomic, or a single responsibility function.

If you guys happens to be an ivy author / committer, I will be very pleased
to get some insight on the matter.

Thanks again.


Daniel Becheanu wrote:
> 
> you are missing
>     <info organisation="myorg" module="${ant.project.name}" />
> tag
> 
> On Wed, Oct 29, 2008 at 9:25 AM, Mitch Gitman <mg...@gmail.com> wrote:
> 
>> Just guessing here...
>>
>> Go to the ivy.xml file for your project and check if the /ivy-module/info
>> element specifies an organisation attribute.
>>
>> On Wed, Oct 29, 2008 at 1:22 AM, ferry97 <vr...@yahoo.com> wrote:
>>
>> >
>> > Hi,
>> > I'm new with Ivy ...
>> >
>> > I'm trying to do a simple publish task and got the following error :
>> >
>> > "no organisation provided for ivy publish task: It can either be set
>> > explicitely via the attribute 'orga
>> > nisation' or via 'ivy.organisation' property or a prior call to
>> <resolve/>"
>> >
>> > and this is my simple publish target :
>> >
>> >   <target name="publish" description="--> compile test and publish this
>> > project in the local ivy repository">
>> >        <property name="revision" value="${app.version}"/>
>> >                <ivy:publish
>> > artifactspattern="${distrib.dir}/[artifact].[ext]"
>> >                                   resolver="local"
>> >                                   pubrevision="${app.version}"
>> >                                   status="release"/>
>> >        <echo message="project ${ant.project.name} released with version
>> > ${app.version}" />
>> >    </target>
>> >
>> > Anyone know what is wrong ?
>> >
>> > Thanks!
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/No-organisation-provided-error----tp20222565p20222565.html
>> > Sent from the ivy-user mailing list archive at Nabble.com.
>> >
>> >
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/No-organisation-provided-error----tp20222565p20239311.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: No organisation provided error ??

Posted by Daniel Becheanu <da...@gmail.com>.
you are missing
    <info organisation="myorg" module="${ant.project.name}" />
tag

On Wed, Oct 29, 2008 at 9:25 AM, Mitch Gitman <mg...@gmail.com> wrote:

> Just guessing here...
>
> Go to the ivy.xml file for your project and check if the /ivy-module/info
> element specifies an organisation attribute.
>
> On Wed, Oct 29, 2008 at 1:22 AM, ferry97 <vr...@yahoo.com> wrote:
>
> >
> > Hi,
> > I'm new with Ivy ...
> >
> > I'm trying to do a simple publish task and got the following error :
> >
> > "no organisation provided for ivy publish task: It can either be set
> > explicitely via the attribute 'orga
> > nisation' or via 'ivy.organisation' property or a prior call to
> <resolve/>"
> >
> > and this is my simple publish target :
> >
> >   <target name="publish" description="--> compile test and publish this
> > project in the local ivy repository">
> >        <property name="revision" value="${app.version}"/>
> >                <ivy:publish
> > artifactspattern="${distrib.dir}/[artifact].[ext]"
> >                                   resolver="local"
> >                                   pubrevision="${app.version}"
> >                                   status="release"/>
> >        <echo message="project ${ant.project.name} released with version
> > ${app.version}" />
> >    </target>
> >
> > Anyone know what is wrong ?
> >
> > Thanks!
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/No-organisation-provided-error----tp20222565p20222565.html
> > Sent from the ivy-user mailing list archive at Nabble.com.
> >
> >
>

Re: No organisation provided error ??

Posted by Mitch Gitman <mg...@gmail.com>.
Just guessing here...

Go to the ivy.xml file for your project and check if the /ivy-module/info
element specifies an organisation attribute.

On Wed, Oct 29, 2008 at 1:22 AM, ferry97 <vr...@yahoo.com> wrote:

>
> Hi,
> I'm new with Ivy ...
>
> I'm trying to do a simple publish task and got the following error :
>
> "no organisation provided for ivy publish task: It can either be set
> explicitely via the attribute 'orga
> nisation' or via 'ivy.organisation' property or a prior call to <resolve/>"
>
> and this is my simple publish target :
>
>   <target name="publish" description="--> compile test and publish this
> project in the local ivy repository">
>        <property name="revision" value="${app.version}"/>
>                <ivy:publish
> artifactspattern="${distrib.dir}/[artifact].[ext]"
>                                   resolver="local"
>                                   pubrevision="${app.version}"
>                                   status="release"/>
>        <echo message="project ${ant.project.name} released with version
> ${app.version}" />
>    </target>
>
> Anyone know what is wrong ?
>
> Thanks!
>
> --
> View this message in context:
> http://www.nabble.com/No-organisation-provided-error----tp20222565p20222565.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>

Re: No organisation provided error ??

Posted by ferry97 <vr...@yahoo.com>.
Hi Maarten,

Still not working, it will raise error :
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)


I have create an issue:
https://issues.apache.org/jira/browse/IVY-964

Thanks.





Maarten Coene wrote:
> 
> The publish task must know which module it has to publish. By default, it
> published the last resolved module. You can also do a publish without a
> resolve if you tell the publish task which module to publish by specifying
> the "organisation", "module" and "revision" attributes (which doesn't seem
> to be documented on the website, I created an issue of this:
> https://issues.apache.org/jira/browse/IVY-963).
> 
> So, the following should work without a prior resolve of the "your_module"
> module:
> 
>               <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"/>
> 
> If that doesn't work please create a JIRA issue...
> 
> Maarten
> 
> 
> 
> 
> ----- Original Message ----
> From: ferry97 <vr...@yahoo.com>
> To: ivy-user@ant.apache.org
> Sent: Thursday, October 30, 2008 2:29:33 AM
> Subject: Re: No organisation provided error ??
> 
> 
> Hi guys,
> 
> Thank you for the response, and pardon me for not giving a complete
> description. I already had the ivy.xml file with the info organisation in
> it.
> I just found out the problem, and I have no idea whether it's a bug in ivy
> or it was intended to.
> 
> The solution only to add the ivy:retrieve before calling the ivy:publish.
> 
>     <target name="resolve" description="retreive dependencies with ivy">
>         <ivy:retrieve />
>     </target>
> 
> and add the publish dependency to resolve.
> 
> It's quite surprising that ivy:publish will not working properly without
> the
> calling to ivy:retrieve, my assumption, every ivy:<action> should be an
> atomic, or a single responsibility function.
> 
> If you guys happens to be an ivy author / committer, I will be very
> pleased
> to get some insight on the matter.
> 
> Thanks again.
> 
> 
> Daniel Becheanu wrote:
>> 
>> you are missing
>>     <info organisation="myorg" module="${ant.project.name}" />
>> tag
>> 
>> On Wed, Oct 29, 2008 at 9:25 AM, Mitch Gitman <mg...@gmail.com> wrote:
>> 
>>> Just guessing here...
>>>
>>> Go to the ivy.xml file for your project and check if the
>>> /ivy-module/info
>>> element specifies an organisation attribute.
>>>
>>> On Wed, Oct 29, 2008 at 1:22 AM, ferry97 <vr...@yahoo.com> wrote:
>>>
>>> >
>>> > Hi,
>>> > I'm new with Ivy ...
>>> >
>>> > I'm trying to do a simple publish task and got the following error :
>>> >
>>> > "no organisation provided for ivy publish task: It can either be set
>>> > explicitely via the attribute 'orga
>>> > nisation' or via 'ivy.organisation' property or a prior call to
>>> <resolve/>"
>>> >
>>> > and this is my simple publish target :
>>> >
>>> >   <target name="publish" description="--> compile test and publish
>>> this
>>> > project in the local ivy repository">
>>> >        <property name="revision" value="${app.version}"/>
>>> >                <ivy:publish
>>> > artifactspattern="${distrib.dir}/[artifact].[ext]"
>>> >                                   resolver="local"
>>> >                                   pubrevision="${app.version}"
>>> >                                   status="release"/>
>>> >        <echo message="project ${ant.project.name} released with
>>> version
>>> > ${app.version}" />
>>> >    </target>
>>> >
>>> > Anyone know what is wrong ?
>>> >
>>> > Thanks!
>>> >
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/No-organisation-provided-error----tp20222565p20222565.html
>>> > Sent from the ivy-user mailing list archive at Nabble.com.
>>> >
>>> >
>>>
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/No-organisation-provided-error----tp20222565p20239311.html
> Sent from the ivy-user mailing list archive at Nabble.com.
> 
> 
>       
> 
> 

-- 
View this message in context: http://www.nabble.com/No-organisation-provided-error----tp20222565p20258868.html
Sent from the ivy-user mailing list archive at Nabble.com.