-
Jul 6th, 2011, 07:13 AM
#1
Problems with Spring DM + Maven + Eclipse
Hi,
i hope i found the right place to post my problem.
First of all, that are my first steps into the osgi world.
I created a new maven project with eclipse (3.7) and m2eclipse. I used the group-id:org.springframework.osgi artifact-id: spring-osgi-bundle-archetype version: 1.2.1.
After the project was created, i added the HelloWorld.class from that articel. I run mvn package and tried that bundle on a clean, standalone equinox with the needed spring dm bundles. When i start my bundle, i see "Hello World!"... it works.
Now i would like to run the bundle in eclipse. I changed the target Platform to spring dm and run the project as OSGi Framework. Ths osgi console starts, but no "Hello World". All the org.springframework.osgi.[extender,io,core] with there dependencys are active. I can stop or start my bundle. No "Hello World".
I tried to move the boundle-context.xml to diffrent places. But nothing chanced. Does anybody have a glue how to fix that problem? Or is there a better way to run bundles in eclipse?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules