ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Mannion (COMPASS)" <o.mann...@auckland.ac.nz>
Subject URL resolver for googlecode.com fails to download
Date Wed, 04 May 2011 02:12:58 GMT
Hi,

I'm running ivy from an ant build script (execute-ivy.xml see below) and getting the following:

[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           [NOT FOUND  ] org.omancode#omcutil;1.2.1!omcutil-sources.jar(source)
(406ms)
[ivy:resolve]   ==== googlecode: tried
[ivy:resolve]     http://omcutil.googlecode.com/files/omcutil-sources-1.2.1.jar
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::              FAILED DOWNLOADS            ::
[ivy:resolve]           :: ^ see resolution messages for details  ^ ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.omancode#omcutil;1.2.1!omcutil-sources.jar(source)
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

The weird thing is if I try and download the URL http://omcutil.googlecode.com/files/omcutil-sources-1.2.1.jar
in a browser it will work, and then if I go back and run the script it will execute OK.

I'd like it to work the first time without having to "prime" it by going to the URL via the
browser.

Any ideas what is going on? Thanks for your help.


Execute-ivy.xml
---------------

<project name="execute-ivy" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">

    <target name="resolve" description="--> resolve dependencies with ivy">
        <ivy:resolve inline="true"
                organisation="org.omancode"
                        module="readmytables"
                        revision="latest.integration"/>
    </target>
</project>


Ivysettings.xml
---------------

<ivysettings>
        <include url="${ivy.default.settings.dir}/ivysettings.xml"/>
        <resolvers>

                <url name="googlecode">
                        <ivy pattern="http://[module].googlecode.com/svn/trunk/[module]/ivypublish/ivy-[revision].xml"
/>
                        <artifact pattern="http://[module].googlecode.com/files/[artifact]-[revision].[ext]"
/>
                </url>

        </resolvers>
        <modules>
                <!--  modules not using default resolver -->
                <module organisation="org.omancode" resolver="googlecode" />
        </modules>
</ivysettings>





Regards,


Oliver Mannion
Programmer
COMPASS - Centre of Methods and Policy Application in the Social Sciences
www.compass.auckland.ac.nz
The University of Auckland, New Zealand

Phone +(649) 373 7999 ext 89760 DDI +(649) 923 9760




__________ Information from ESET NOD32 Antivirus, version of virus signature database 6092
(20110503) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Mime
View raw message