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 Ed Hillmann <ed...@gmail.com> on 2008/04/16 05:46:33 UTC

Q: How to redefine a public repository?

I'm new to Ivy, and I'm trying to use the v 2.0.0 Beta 2 release for
the first time (well, more specifically, Ivy for the first time).  I
have been using Maven for the last few months.  We have a local
Artifactory Maven repository inside our network, which I would like to
use for Ivy's public repository.  I really need to, as the Unix box on
which I develop does not have access to the external world, but can
access the Artifactory server (which has been granted access to
external repository and acts as a mirror).

So, I've read through the doco, and I've defined an ivysettings.xml
file as follows:

<ivysettings>
	<settings defaultResolver="default"/>
	<include url="ivysettings-public.xml"/>
	<include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
	<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
	<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
	<include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
</ivysettings>

I've defined a new file, ivysettings-public.xml, which defines the
public repository....

<ivysettings>
    <resolvers>
        <url name="public" m2compatible="true">
            <artifact
pattern="http://deli.tecbil.com:8081/artifactory/repo/[module]/[revision]/[artifact]-[revision].[ext]"
/>
            <artifact
pattern="http://deli.tecbil.com:8081/artifactory/repo/[module]/[revision]/[artifact].[ext]"
/>
        </url>
    </resolvers>
</ivysettings>

When I attempt to run this, I get the following error:

-ivy-retrieve:
No ivy:settings found for the default reference 'ivy.instance'.  A
default instance will be used
     [null] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
     [null] :: loading settings :: file =
/u01/ct/acct/ehillman/webgui-src/trunk/webgui/pe_objectmanager/ivysettings.xml

BUILD FAILED
/u01/ct/acct/ehillman/webgui-src/trunk/webgui/pe_objectmanager/build.xml:83:
impossible to configure ivy:settings with given file:
/u01/ct/acct/ehillman/webgui-src/trunk/webgui/pe_objectmanager/ivysettings.xml
:java.text.ParseException: failed to load settings from
file:/u01/ct/acct/ehillman/webgui-src/trunk/webgui/pe_objectmanager/ivysettings.xml:
io problem while parsing config file: no protocol:
/u01/ct/acct/ehillman/webgui-src/trunk/webgui/pe_objectmanager/ivysettings-public.xml

So, from what I can see, it's finding the local settings file, and
trying to load up the ivysettings-public.xml file, but it's getting a
protocol error.  Does anyone know what this means?  The file's not
that big, and it looks like it's written OK.

Thanks for any help,
Ed

Re: Q: How to redefine a public repository?

Posted by Ed Hillmann <ed...@gmail.com>.
On Wed, Apr 16, 2008 at 3:02 PM, Jim White <ji...@pagesmiths.com> wrote:
>  <include file="ivysettings-public.xml"/>
>
>  Or supply a URL with a protocol like "file:/...".
>
>  Jim

Thanks Jim.  That did it! :)  But, now I think there's a problem with
accessing my Artifactory instance.  It looks like it doesn't provide
public access to the managed artifacts. :(  Hopefully I'll find the
correct url.

Thanks,
Ed

Re: Q: How to redefine a public repository?

Posted by Jim White <ji...@pagesmiths.com>.
Ed Hillmann wrote:
> I'm new to Ivy, and I'm trying to use the v 2.0.0 Beta 2 release for
> the first time (well, more specifically, Ivy for the first time).  I
> have been using Maven for the last few months.  We have a local
> Artifactory Maven repository inside our network, which I would like to
> use for Ivy's public repository.  I really need to, as the Unix box on
> which I develop does not have access to the external world, but can
> access the Artifactory server (which has been granted access to
> external repository and acts as a mirror).
> 
> So, I've read through the doco, and I've defined an ivysettings.xml
> file as follows:
> 
> <ivysettings>
> 	<settings defaultResolver="default"/>
> 	<include url="ivysettings-public.xml"/>

<include file="ivysettings-public.xml"/>

Or supply a URL with a protocol like "file:/...".

Jim