Hi,
I have been using ivy to manage our builds and it works fine however now I would also like to move over to using AbstractConfigurableBundleCreatorTests and using ivy to manage and run these. It does not make sense for me to use maven here as ivy is already in place for builds and is working fine.
I created some new classes (modelled on the maven ones) LocalFileSystemIvyRepository / IvyPackagedArtifactFinder (these work fine and get all the relevant dependencies) - I put them in by overriding the method "ArtifactLocator getLocator()" in our testcase which extends AbstractConfigurableBundleCreatorTests. And this seems to work fine as well.
I needed to add some dependencies to the ivy.xml in order to run the tests (and these are much like the ones discussed for maven in the forum) and this seems to work fine as well. ivy finds them and downloads to the cache.
<dependency org="org.springframework.osgi" name="org.springframework.osgi.extender" rev="${org.springframework.osgi.test}" conf="test->runtime" />
<dependency org="org.springframework.osgi" name="org.springframework.osgi.test" rev="${org.springframework.osgi.test}" conf="test->runtime" />
<!-- Logging -->
<dependency org="org.slf4j" name="com.springsource.slf4j.api" rev="${org.slf4j}" conf="test->runtime" />
<dependency org="org.slf4j" name="com.springsource.slf4j.log4j" rev="${org.slf4j}" conf="test->runtime" />
<dependency org="org.slf4j" name="com.springsource.slf4j.org.apache.commons.lo gging" rev="${org.slf4j}" conf="test->runtime" />
<dependency org="org.eclipse.osgi" name="org.eclipse.osgi" rev="3.5.0.v20081201-1815" />
The problem is as the test case is started :
[junit] ------------- Standard Output ---------------
[junit] main INFO [org.tssg.network.stack.bundle_a.test.SimpleOsgiTes t] - Equinox OSGi Platform [3.5.0.v20081201-1815] started
:
:
[junit] Testcase: testOsgiPlatformStarts(org.tssg.network.stack.bund le_a.test.SimpleOsgiTest): Caused an ERROR
[junit] /home/pphelan/local/dump/prototype/projects/ivy-cache/repository/org.springframework/spring-aop/2.5.5/spring-aop-2.5.5.jar (No such file or directory)
[junit] java.io.FileNotFoundException: /home/pphelan/local/dump/prototype/projects/ivy-cache/repository/org.springframework/spring-aop/2.5.5/spring-aop-2.5.5.jar (No such file or directory)
:
Upon startup of OSGi it is looking for spring-aop-2.5.5.jar and ivy cannot resolve it. I have tried to explicity set the version I want but it is ignored and I tracked it back to the org.springframework.osgi.test-1.1.3.RELEASE.jar which in the MANIFEST.MF file is specifies Spring 2.5.5. This is the only place I have seen 2.5.5 as a version so I suspect it is coming from here.
In the IVY.XML I have specified I am using Spring 2.5.6.A but this does not seem to be taken into consideration as it is satisfying the dependencies of the osgi test packages. This is fine - I have no problem with that.
The problem I think is that I cannot satisfy a request for Spring packages versioned at 2.5.5 - these do not seem to be available on S3 - so ivy cannot download them. I added some debug into the new classes I created to find artifacts and OSGi is looking for versions 2.5.5 of these packages, see below.
Can anyone help ? I am stuck and have been looking into this all day. Is there a repository I can get 2.5.5 versions of everything or is there a simpler fix that I am missing.
~Patsy
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - G: org.springframework A: spring-aop V: 2.5.5 T: jar
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - Local IVY_CACHE repository used: [/home/pphelan/local/dump/prototype/projects/ivy-cache]
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - G: org.springframework A: spring-beans V: 2.5.5 T: jar
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - Local IVY_CACHE repository used: [/home/pphelan/local/dump/prototype/projects/ivy-cache]
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - G: org.springframework A: spring-context V: 2.5.5 T: jar
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - Local IVY_CACHE repository used: [/home/pphelan/local/dump/prototype/projects/ivy-cache]
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - G: org.springframework A: spring-core V: 2.5.5 T: jar
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - Local IVY_CACHE repository used: [/home/pphelan/local/dump/prototype/projects/ivy-cache]
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - G: org.springframework A: spring-test V: 2.5.5 T: jar
[junit] main INFO [org.tssg.network.stack.bundle_a.test.LocalFileSyst emIvyRepository] - Local IVY_CACHE repository used: [/home/pphelan/local/dump/prototype/projects/ivy-cache]


).

