I am still trying to setup our enterprise repository with <ivy:install> from ibiblio/maven2 ... :)
I experienced the following problem installing struts-1.1 (yes, they use older software over here ... :) Here is the output on the terminal when installing struts-1.1: <><><> ivy-configure: [ivy:configure] Loading jar:file:/u:/eclipse/workspace/IDOS%20Repository%20Management/ant.d/lib/ivy-1.4.1.jar!/fr/jayasoft/i vy/ivy.properties [ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ :: [ivy:configure] :: configuring :: file = u:\eclipse\workspace\IDOS Repository Management\ivy.d\ivysettings.xml ivy-install: [ivy:install] :: installing [ apache | struts | 1.1 ] :: [ivy:install] :: resolving dependencies :: [ivy:install] found [ apache | struts | 1.1 ] in enterprise [ivy:install] found [ apache | commons-beanutils | 1.6.1 ] in enterprise [ivy:install] found [ apache | commons-logging | 1.0 ] in enterprise [ivy:install] found [ apache | commons-collections | 2.0 ] in enterprise [ivy:install] found [ struts | struts-legacy | 1.1 ] in enterprise [ivy:install] found [ apache | commons-digester | 1.6 ] in enterprise [ivy:install] found [ apache | commons-beanutils | 1.6 ] in enterprise [ivy:install] found [ apache | commons-collections | 2.1 ] in enterprise [ivy:install] found [ apache | xml-apis | 1.0.b2 ] in enterprise [ivy:install] found [ apache | commons-fileupload | 1.0 ] in enterprise [ivy:install] found [ apache | commons-lang | 2.1 ] in enterprise [ivy:install] found [ apache | commons-validator | 1.1.4 ] in enterprise [ivy:install] found [ apache | oro | 2.0.7 ] in enterprise [ivy:install] found [ javax.sql | jdbc-stdext | 2.0 ] in enterprise [ivy:install] found [ javax.servlet | servlet-api | 2.3 ] in enterprise [ivy:install] :: downloading artifacts to cache :: [ivy:install] :: installing in enterprise :: [ivy:install] published struts to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/struts/jars/struts-1 .1.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/struts/ivys/ivy-1.1.xml [ivy:install] published commons-beanutils to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-b eanutils/jars/commons-beanutils-1.6.1.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-beanutils/ivys/ ivy-1.6.1.xml [ivy:install] published struts-legacy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/struts/struts-legacy /jars/struts-legacy-1.1.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/struts/struts-legacy/ivys/ivy- 1.1.xml [ivy:install] published commons-digester to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-di gester/jars/commons-digester-1.6.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-digester/ivys/i vy-1.6.xml [ivy:install] published commons-fileupload to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons- fileupload/jars/commons-fileupload-1.0.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-fileupload/ivys /ivy-1.0.xml [ivy:install] published commons-lang to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-lang/j ars/commons-lang-2.1.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-lang/ivys/ivy-2 .1.xml [ivy:install] published commons-logging to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-log ging/jars/commons-logging-1.0.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-logging/ivys/iv y-1.0.xml [ivy:install] published commons-validator to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-v alidator/jars/commons-validator-1.1.4.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-validator/ivys/ ivy-1.1.4.xml [ivy:install] published oro to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/oro/jars/oro-2.0.7.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/oro/ivys/ivy-2.0.7.xml [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/javax.sql/jdbc-stdext/ivys/ivy -2.0.xml [ivy:install] published commons-collections to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons -collections/jars/commons-collections-2.0.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-collections/ivy s/ivy-2.0.xml [ivy:install] published commons-beanutils to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-b eanutils/jars/commons-beanutils-1.6.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-beanutils/ivys/ ivy-1.6.xml [ivy:install] published commons-collections to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons -collections/jars/commons-collections-2.1.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/commons-collections/ivy s/ivy-2.1.xml [ivy:install] published xml-apis to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/xml-apis/jars/xml- apis-1.0.b2.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/apache/xml-apis/ivys/ivy-1.0.b 2.xml [ivy:install] published servlet-api to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/javax.servlet/servlet- api/jars/servlet-api-2.3.jar [ivy:install] published ivy to U:\scratch\reptest/target/ivy/repository/idossoft/enterprise/javax.servlet/servlet-api/ivys /ivy-2.3.xml [ivy:install] :: install resolution report :: [ivy:install] :: evicted modules: [ivy:install] [ apache | commons-collections | 3.1 ] by [[ apache | commons-collections | 2.1 ], [ apache | commons-collec tions | 2.0 ]] in [default] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 17 | 0 | 0 | 1 || 14 | 0 | --------------------------------------------------------------------- <><><> What I don't understand, why has [ apache | commons-collections | 3.1 ] been evicted? In the generated ivy.xml for struts-1.1 it explicitly forces common-collections in version 3.1 as a dependency and my defaultConflictManager is /all/. Here is my ivysettings.xml file: <><><> <ivyconf> <properties file="${ivy.conf.dir}/ivybuiltin.properties" override="true"/> <properties file="${ivy.conf.dir}/ivyorganization.properties" override="false"/> <properties file="${ivy.conf.dir}/ivyproject.properties" override="false"/> <properties file="${ivy.conf.dir}/ivysettings.properties" override="false"/> <conf defaultCache="${ivy.cache.dir}" defaultResolver="public-libraries" defaultConflictManager="all" /> <!-- in order to get all revisions without any eviction --> <!-- Import resolver definitions for entprise & ivyrep, maven1 & maven2 --> <include file="${ivy.conf.dir}/ivysettings-repo-enterprise.xml" /> <include file="${ivy.conf.dir}/ivysettings-repo-ivy.xml" /> <include file="${ivy.conf.dir}/ivysettings-repo-maven1.xml" /> <include file="${ivy.conf.dir}/ivysettings-repo-maven2.xml" /> <resolvers> <!-- Our well-known imported repositories --> <resolver ref="enterprise" /> <resolver ref="official-ivy-repo" /> <resolver ref="ibiblio-maven1-with-namespace" /> <resolver ref="ibiblio-maven2-with-namespace" /> <resolver ref="ibiblio-maven2-without-namespace" /> <!-- Chain of Resolvers --> <chain name="public-libraries" returnFirst="false"> <resolver ref="enterprise" /> <resolver ref="ibiblio-maven2-with-namespace" /> </chain> <!-- Chain of Resolvers --> <chain name="public-libraries-all" returnFirst="false"> <resolver ref="enterprise" /> <resolver ref="official-ivy-repo"/> <resolver ref="ibiblio-maven2-with-namespace" /> </chain> </resolvers> </ivyconf> <><><> The ibiblio resolvers are defined as in the Ivy Tutorial. The /public-libraries/ chain says not stop when something is found in enterprise (returnFirst="false") and the conflict manager is defined to resolve to all versions (defaultConflictManager="all"). So why does Ivy evict [ apache | commons-collections | 3.1 ]? Can somebody enlighten me? Thx in advance. Cheerio ... :)
