File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Modular Java: pax-import-bundle... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Modular Java: pax-import-bundle..." Watch "Modular Java: pax-import-bundle..." New topic

Modular Java: pax-import-bundle...

Bradley Beck

Joined: Jul 21, 2009
Posts: 3
I'm working the examples in the Modular Java book. I have experience with OSGi but am new to PAX. I'm having trouble getting imported external bundles to provision correctly. I do something like the following but the pax-logging bundles don't show up in the OSGi container...

The dependencies show up in the provision/pom.xml but not in the top-level pom.xml.

Is there a step I'm missing?

Bradley Beck

Joined: Jul 21, 2009
Posts: 3
Had to add the following to the top-level pom.xml...

I guess I assumed they'd be in the standard Maven repos....

Thanks anyway.
Craig Walls
Ranch Hand

Joined: Sep 19, 2003
Posts: 335
Sorry...I somehow overlooked your post until this morning. I was about to ask if you had the OPS4J repo in your Maven repository list, but it looks like you figured it out.'d think that either (1) more of the Pax stuff would be in central or (2) Pax Construct would automatically add the OPS4J repository to the pom.xml file for you. Either way would be good.

Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
I agree. Here's the link:
subject: Modular Java: pax-import-bundle...
jQuery in Action, 3rd edition