ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lari Hotari (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVYDE-117) same jar files get downloaded 3 times (binary, javadoc and sources jar files are identical)
Date Thu, 28 Aug 2008 04:58:44 GMT
same jar files get downloaded 3 times (binary, javadoc and sources jar files are identical)
-------------------------------------------------------------------------------------------

                 Key: IVYDE-117
                 URL: https://issues.apache.org/jira/browse/IVYDE-117
             Project: IvyDE
          Issue Type: Bug
          Components: classpath container
    Affects Versions: 2.0.0.alpha1
         Environment: Eclipse 3.3.2, Java 1.6.0_06, Ubuntu 8.04
            Reporter: Lari Hotari


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





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