You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2009/03/04 22:51:57 UTC

[jira] Commented: (IVY-1039) Ivy fails to cache something, m2 resolver

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

Maarten Coene commented on IVY-1039:
------------------------------------

Could you give it a try without the chain resolver?

{code:xml}
<ivysettings>
    <settings defaultResolver="default"/>
    
    <resolvers>
            <ibiblio name="default" root="http://scala-tools.org/repo-releases/" m2compatible="true"/>
    </resolvers>
</ivysettings>
{code}

> Ivy fails to cache something, m2 resolver
> -----------------------------------------
>
>                 Key: IVY-1039
>                 URL: https://issues.apache.org/jira/browse/IVY-1039
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0
>            Reporter: Stepan Koltsov
>
> Something wrong. Ivy downloads something from network on each run. So compilation always very long.
> ivy.xml:
> {code}
> <ivy-module version="2.0">
>     <info revision="0.2" organisation="ru.yandex" module="mysql-diff"/>
>     
>     <dependencies>
>         <dependency org="org.scalaforge" name="scalax" rev="0.1"/>
>     </dependencies>
>         
> </ivy-module>
> {code}
> ivysettings.xml:
> {code}
> <ivysettings>
>     <settings defaultResolver="default"/>
>     
>     <resolvers>
>         <chain name="default">
>             <ibiblio name="scala-tools" root="http://scala-tools.org/repo-releases/" m2compatible="true"/>
>         </chain>
>     </resolvers>
> </ivysettings>
> {code}
> build.xml:
> {code}
> <project name="mysqlDiff" default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">
>     
>     <property name="ivy.version" value="2.0.0"/>
>     
>     <available property="ivy.available" file="lib/ivy/ivy-${ivy.version}.jar"/>
>     <target name="download-ivy" unless="ivy.available">
>         <delete dir="lib/ivy"/>
>         <mkdir dir="lib/ivy"/>
>         
>         <echo>Downloading ivy</echo>
>         
>         <get src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"
>                 dest="lib/ivy/ivy-${ivy.version}.jar"/>
>     </target>
>     
>     <target name="resolve" depends="download-ivy">
>         <taskdef resource="org/apache/ivy/ant/antlib.xml"
>                 uri="antlib:org.apache.ivy.ant">
>             <classpath>
>                 <fileset dir="lib/ivy" includes="*.jar"/>
>             </classpath>
>         </taskdef>
>         
>         <ivy:retrieve pattern="lib/dep/[organisation]-[artifact]-[revision].[ext]" sync="true" type="jar"/>
>     </target>
>     
> </project>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.