You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Barry Kaplan <gr...@memelet.com> on 2008/08/25 00:16:27 UTC

Queston about ivy reports?

Inside eclipse, the container includes junit-4.0. My project depends on
junit-4.5 and never explicity declares a dep on junit-4.0. When I create a
report for the project junit-4.0 does not appears. 

Why might there be such an inconsistency?
-- 
View this message in context: http://www.nabble.com/Queston-about-ivy-reports--tp19135453p19135453.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Queston about ivy reports?

Posted by Barry Kaplan <gr...@memelet.com>.
ivysettings.xml:
---------------
<ivysettings>

  <settings defaultResolver="libraries"/>
  
  <resolvers>
    <chain name="libraries" returnFirst="true" dual="true">
    
		<filesystem name="metadata-override">
			<artifact
pattern="${ivy.settings.dir}/../../sig-m2-repo/metadata/[organization]/[module]/ivy-[revision].xml"
/>
		</filesystem>
		
		<chain name="public">
			<filesystem name="sig-local" m2compatible="true">
				<artifact
pattern="${ivy.settings.dir}/target/ivy/local-repo/[artifact]-[revision].[ext]"
/>
			</filesystem>
			
			<filesystem name="sig-private" m2compatible="true">
				<artifact
pattern="${ivy.settings.dir}/../../sig-m2-repo/artifacts/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			</filesystem>
			
			<ibiblio name="ibiblio" m2compatible="true"/>
			<url name="jboss" m2compatible="true">
				<artifact
pattern="http://repository.jboss.org/maven2/[organization]/[module]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			</url>
			<ibiblio name="java.net" root="http://download.java.net/maven/1/"
pattern="[organisation]/[type]s/[artifact]-[revision].[ext]"/>
		</chain>
		
    </chain>
  </resolvers>
  
</ivysettings>
---------------

ivy.xml:
-------
<ivy-module version="2.0">
    <info 
    	organisation="com.its" 
    	module="infra-common"
    	revision="1.0"
    	status="integration"/>
<!--
	<configurations>
    	<conf name="build" visibility="private" description="building"/>
    	<conf name="test" extends="build" visibility="private"
description="unit testing" />
    	<conf name="prod" description="production" />   
    </configurations>
-->

    <publications>
    	<artifact name="infra-common" type="jar" ext="jar"/>
    </publications>    

    <dependencies>
        <dependency org="junit" name="junit-dep" rev="4.5"/>
	        <dependency org="org.hamcrest" name="hamcrest-core" rev="1.1" />
	        <dependency org="easymock" name="easymock" rev="1.2_Java1.5"/>
	        <dependency org="org.mockito" name="mockito-core" rev="1.5"/>
	        <dependency org="cglib" name="cglib-nodep" rev="2.1_3"/>
	        <dependency org="asm" name="asm-all" rev="3.1"/>
	     
        <dependency org="javax.mail" name="mail" rev="1.4"/>
        <dependency org="javax.servlet" name="servlet-api" rev="2.3" />

        <dependency org="log4j" name="log4j" rev="1.2.15"
transitive="false"/>
        <dependency org="concurrent" name="concurrent" rev="1.3.2" />
        <dependency org="jug" name="jug" rev="1.1.2" /> 
        <dependency org="commons-lang" name="commons-lang" rev="2.4"/>
        <dependency org="commons-collections" name="commons-collections"
rev="3.2.1"/>
        <dependency org="commons-beanutils" name="commons-beanutils"
rev="1.7.0"/>
     
        <dependency org="org.springframework" name="spring-core" rev="2.5.5"
transitive="false"/>
        <dependency org="org.springframework" name="spring-beans"
rev="2.5.5" transitive="false"/>
        <dependency org="org.springframework" name="spring-context"
rev="2.5.5" transitive="false"/>
        
        
        <dependency org="activemq" name="activemq" rev="3.0"
transitive="true" /> 
	        <dependency org="javax" name="jms" rev="1.1"/>

        <dependency org="tibco" name="tibjms" rev="4.4.0" transitive="true"
/> 
	        <dependency org="javax" name="jms" rev="1.1"/>
    </dependencies>
    
</ivy-module>
-------


-- 
View this message in context: http://www.nabble.com/Queston-about-ivy-reports--tp19135453p19160270.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Queston about ivy reports?

Posted by Nicolas Lalevée <ni...@hibnet.org>.
Le 25 août 08 à 20:31, Barry Kaplan a écrit :

>
> Everything is the same in eclipse and ant (as far as I can tell). Same
> ivysettings.xml, same conf (none, yet). I don't see any dups warnings.
>
> The only difference was the inclusion of junit-4.0 in the eclipse ivy
> container. Every other dependency seemed to be same.
>
> Adding a global exclude did the trick as a workaround.

Then this may deserve a jira issue in IVYDE, if your willing to share  
your ivy.xml and your ivy-settings.xml

Nicolas


Re: Queston about ivy reports?

Posted by Barry Kaplan <gr...@memelet.com>.
Everything is the same in eclipse and ant (as far as I can tell). Same
ivysettings.xml, same conf (none, yet). I don't see any dups warnings. 

The only difference was the inclusion of junit-4.0 in the eclipse ivy
container. Every other dependency seemed to be same.

Adding a global exclude did the trick as a workaround.
-- 
View this message in context: http://www.nabble.com/Queston-about-ivy-reports--tp19135453p19149195.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Queston about ivy reports?

Posted by Nicolas Lalevée <ni...@hibnet.org>.
Le 25 août 08 à 00:16, Barry Kaplan a écrit :

>
> Inside eclipse, the container includes junit-4.0. My project depends  
> on
> junit-4.5 and never explicity declares a dep on junit-4.0. When I  
> create a
> report for the project junit-4.0 does not appears.
>
> Why might there be such an inconsistency?

Between ant and Eclipse, do you do the resolve on different  
repositories, with different settings, or with different "conf" ?
Do you have the warning "There are some duplicates entries due to  
conflicts between the resolved configurations" in the IvyConsole ?
related topic: http://ant.apache.org/ivy/ivyde/faq.html#duplicate-entries

Nicolas