Uploaded image for project: 'IvyDE'
  1. IvyDE
  2. IVYDE-117

same jar files get downloaded 3 times (binary, javadoc and sources jar files are identical)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0.alpha1
    • 2.0.0.beta1
    • classpath container
    • None
    • Eclipse 3.3.2, Java 1.6.0_06, Ubuntu 8.04

    Description

      same jar files get downloaded 3 times (binary, javadoc and sources jar files are identical)

      ivysettings.xml:
      <ivysettings>
      <property name="ibiblio-maven2-root" value="http://mirrors.ibiblio.org/pub/mirrors/maven2/" override="false" />
      <property name="maven2.pattern" value="[organisation]/[module]/[revision]/[module]-[revision].[ext]" />
      <conf defaultResolver='maven2' />
      <resolvers>
      <ibiblio name="maven2" root="${ibiblio-maven2-root}" pattern="${maven2.pattern}" m2compatible="true" usepoms="false"/>
      </resolvers>
      </ivysettings>

      ivy.xml:
      <ivy-module version="1.0">
      <info
      organisation=""
      module="MyExample"
      status="integration">
      </info>
      <dependencies>
      <dependency org="jaxen" name="jaxen" rev="1.1.1"/>
      </dependencies>
      </ivy-module>

      by looking at the code in
      http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyResolveJob.java?view=markup
      I found a workaround (by adding ([classifier]) to the pattern):
      <property name="maven2.pattern" value="[organisation]/[module]/[revision]/[module]-[revision]([classifier]).[ext]" />
      This prevents downloading javadoc and source jars, but doesn't fix the problem.

      Console log that shows the problem:
      checking source for jaxen#jaxen;1.1.1!jaxen.jar
      trying http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      tried http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar ...
      maven2: downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      to /home/lari/.ivy2/cache/jaxen/jaxen/sources/jaxen-1.1.1.jar.part
      sha1 file found for http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar: checking...
      maven2: downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar.sha1
      to /tmp/ivytmp51367sha1
      sha1 OK for http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      [SUCCESSFUL ] jaxen#jaxen;1.1.1!jaxen.jar(source) (2044ms)
      checking javadoc for jaxen#jaxen;1.1.1!jaxen.jar
      trying http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      tried http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar ...
      maven2: downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
      to /home/lari/.ivy2/cache/jaxen/jaxen/javadocs/jaxen-1.1.1.jar.part
      sha1 file found for http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar: checking...
      maven2: downloading http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar.sha1
      to /tmp/ivytmp51368sha1
      sha1 OK for http://mirrors.ibiblio.org/pub/mirrors/maven2/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar

      Attachments

        Activity

          People

            xavier Xavier Hanin
            lhotari Lari Hotari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: