I have been unable to get this to work properly and would really appreciate some help getting it going. I've been beating my head against the wall and just can't come up with the solution...
I have the following repositories in my pom.xml:
Code:
http://repository.springsource.com/maven/bundles/release
http://repository.springsource.com/maven/bundles/external
http://repository.springsource.com/maven/bundles/milestone
http://repository.springsource.com/maven/libraries/release
http://repository.springsource.com/maven/libraries/external
http://repository.springsource.com/maven/libraries/milestone
HTML Code:
<dependency>
<groupId>org.springframework.osgi</groupId>
<artifactId>org.springframework.osgi.core</artifactId>
<version>${spring.osgi.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.osgi</groupId>
<artifactId>org.springframework.osgi.extensions.annotation</artifactId>
<version>${spring.osgi.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.osgi</groupId>
<artifactId>org.springframework.osgi.test</artifactId>
<version>${spring.osgi.version}</version>
<scope>test</scope>
</dependency>
Lastly, I've tried setting spring.osgi.version to a couple different values:
- 2.0.0.M1 doesn't work at all, as it just can't find these three dependencies. I would have thought these would be available in the milestone EBR. What am I missing there?
- 1.2.1 resolves all of the dependencies in the pom.xml, but then I have a very simple unit test (shown below) that fails. Basically, I get a number of dependencies on 2.5.6.SEC01 libraries: org.springframework.aop-2.5.6.SEC01.jar gets downloaded and the unit test fails because org.springframework.test-2.5.6.SEC01.jar is unavailable.
Code:
public class TestOsgi extends AbstractConfigurableBundleCreatorTests
{
@Test
public void testSimpleLoad()
{
System.out.println(bundleContext);
}
}
I guess what I'd like to do is what jetztgradnet accomplished: use Spring 3.0.0.RELEASE with Spring DM 2.0.0.M1. I'd settle for using Spring 3.0.0.RELEASE with Spring DM 1.2.1. But as you can see I can't get either to work!
I've attached the pom.xml to this post as pom.txt for reference.
I'm not at all sensitive: if I'm doing something stupid, I'm happy to be informed of that
But it would be a great help if I can get this resolved.