Friday, July 6

Better dependency management with Pax Construct

Had some really useful discussions during the OSGi Community Event in Munich about wrapping complex artifacts such as Hibernate3. The next drop of Pax Construct will try to handle dependencies for you as much as possible (automatically embedding / wrapping / importing them as required) so with one command you can drag an artifact into your OSGi project without having to repeatedly deploy or compile to track down those annoying missing dependencies.

Also planned: OBR support to search for artifacts based on your bundle's imports :)

As ever, let me know via JIRA or email if there's anything that would make OSGi development that little bit easier!


Anonymous said...

cool stuff but the result is

F:\bundlefarm>mvn pax:create-bundle -Dpackage=my.osgi.code.myBundle -Dname=myBun
dle -Dversion=0.1.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'pax'.
[INFO] artifact org.apache.maven.plugins:maven-pax-plugin: checking for updates
from central
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-pax-plugin' does not exist or
no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Aug 08 10:39:55 CEST 2007
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

Do you have a repository for this plugin 'org.apache.maven.plugins:maven-pax-plugin' to set it in settings.xml ?

Best regards


mcculls said...

Hi Didier,

yes, the pax plugin is published at:

which is the current OPS4J repository.

(we're looking into publishing to the
maven central repo, but Niclas would
like to get to a 1.0.0 release first)

btw, if you use the scripts provided
then they set up a lot of this for you
in the project poms (also some of the
scripts/mojos rely on a certain layout
such as created by pax-create-project)

the next release will remove a lot of
this reliance on layout, and provides
support for embedding via FELIX-308