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

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

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.


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

Posted by "Stepan Koltsov (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Stepan Koltsov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679041#action_12679041 ] 

yozh edited comment on IVY-1039 at 3/4/09 6:36 PM:
-------------------------------------------------------------

Without chain resolver it still downloads

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

on each run.

ant -v resolve output:

http://colors.mx1.ru/~stepancheg/ant-resolve.txt

      was (Author: yozh):
    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.


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

Posted by "Stepan Koltsov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679397#action_12679397 ] 

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

I accidentally found a workaround: I can specify:

{code}
        <dependency org="org.scalaforge" name="scalax" rev="0.1" conf="compile->*">
            <exclude org="org.scala-lang"/>
        </dependency>
{code}

And specify dependency on org.scala-lang explicitly.

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


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

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679390#action_12679390 ] 

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

ok, we could improve this by caching the maven-metadata.xml

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