Here is how I set up the Apache Ivy dependency manager so that it can fetch springframework JARs from the SpringSource Enterprise Bundle Repository.
Listing: ivysettings-custom.xml
<ivysettings>
<resolvers>
<url name="com.springsource.repository.bundles.release">
<ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<url name="com.springsource.repository.bundles.external">
<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<chain name="spring">
<resolver ref="com.springsource.repository.bundles.release"/>
<resolver ref="com.springsource.repository.bundles.external"/>
</chain>
<ibiblio name="jboss" root="http://repository.jboss.org/maven2/" m2compatible="true"/>
<chain name="main" dual="true">
<resolver ref="shared" />
<resolver ref="public" />
<resolver ref="spring" />
<resolver ref="jboss" />
</chain>
<chain name="default" returnFirst="true">
<resolver ref="local" />
<resolver ref="main" />
</chain>
</resolvers>
</ivysettings>
Listing: ivysettings.xml
<ivysettings>
<settings defaultResolver="default" />
<include url="${ivy.default.settings.dir}/ivysettings-public.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
<include file="ivysettings-custom.xml" />
</ivysettings>
This means that dependencies such as:
<dependency org="org.springframework" name="org.springframework.web.servlet" rev="3.0.2.RELEASE" />
Should now be resolved correctly from the EBR.