ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-1039) Ivy fails to cache something, m2 resolver
Date Wed, 04 Mar 2009 21:51:57 GMT

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


Mime
View raw message