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

Stepan Koltsov commented on IVY-1039:
-------------------------------------

Without chain resolver it still downloads

http://scala-tools.org/repo-releases/org/scala-lang/scala-library/maven-metadata.xml

on each run.

> 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.

Reply via email to