ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Problem with local repository
Date Mon, 31 May 2010 21:08:44 GMT
Stupid question: is your jar located in ${dist.dir} ?
If so, could you post the Ant console output you get when publishing your jar?

Maarten




----- Original Message ----
From: bokc bokc <youkoun@gmail.com>
To: ivy-user@ant.apache.org
Sent: Mon, May 31, 2010 3:41:37 PM
Subject: Problem with local repository

Hi all,

I'm new on Ivy. I try to publish a jar on a local repository (shared
directory).

My ivy conf file is :
<ivysettings>
    <properties file="${ivy.settings.dir}/ivysettings.properties" />
    <property name="myrepository" value="//192.168.100.124/Repository"
overrrite="true"/>
    <settings defaultResolver="default"/>
    <resolvers>
            <filesystem name="local">
                <ivy pattern="${myrepository}/[module]/ivy-[revision].xml"
/>
                <artifact
pattern="${myrepository}/[module]/[artifact]-[revision].[ext]" />
            </filesystem>
    </resolvers>
    <include url="${ivy.default.settings.dir}/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>

My ant task is :
    <target name="ivy-init" description="Initialisation d'Ivy">
        <ivy:settings file="${basedir}/ivysettings.xml"/>
    </target>
    <target name="publish-local" depends="jar,ivy-init" description="-->
publish artifacts in the local repository">
        <tstamp>
            <format property="now" pattern="yyyyMMddHHmmss"/>
        </tstamp>
        <ivy:info />
        <ivy:publish
            resolver="local"
            artifactspattern="${dist.dir}/[artifact].[ext]"
            pubrevision="last-build"
            pubdate="${now}"
            status="integration"
            forcedeliver="true"
            overwrite="true"
            />
    </target>

The build is good but my jar is not in the local repository. Some one can
help me?


-- 
Olivier
http://bokc-fr.blogspot.com/



      

Mime
View raw message