You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Horlock <pe...@googlemail.com> on 2009/06/12 17:33:23 UTC

Maven + OSGI

Hi,


I have a question regarding Maven dependency management and the OSGi-based
BIRT Report Engine (RE).

The RE, in order to be available at runtime in the tomcat environment,
must conform to a specific directory structure: 'top-level' JARs in
WEB-INF/lib, config.ini in WEB-INF/platform/configuration and dozens of
further JARs with horribly detailed filenames in
WEB-INF/platform/plugins and sub-directories.

How do I combine MVN storage of the RE JARs (and other files -
config.ini, MANIFEST.MF, ...) with the strict directory structure
requirements at deployment time? Ideally, I'd also like to automatically
upload the RE to the Maven repo initially.

I've found a hopeful plugin under
http://mvn-dp-plugin.sourceforge.net/site/plugin-info.html, but the
documentation is scanty and I do not know if it will do what I need...


Thanks in advance,

Peter

Re: Maven + OSGI

Posted by Peter Horlock <pe...@googlemail.com>.
Thanks Stuart, I'll try to get help on that list.

Peter

Re: Maven + OSGI

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/6/15 Peter Horlock <pe...@googlemail.com>

> Hello Stuart,
>
> thanks for your reply.
>
> Could you please send me your assembly plugin settings?
>

Hi Peter,

Unfortunately I don't have an assembly configuration I can share at the
moment - I use Pax-Runner to deploy my apps.
If you're still stuck perhaps you could send a note to general@ops4j.org as
there are a lot of OSGi users on that list.

-- 
Cheers, Stuart

Thanks in advance,
>
> Peter
>

Re: Maven + OSGI

Posted by Peter Horlock <pe...@googlemail.com>.
Could anyone please share his/her assembly plugin settings and assembly file
for OSGI?

Thanks in advance,


Peter

Re: Maven + OSGI

Posted by Peter Horlock <pe...@googlemail.com>.
Hello Stuart,

thanks for your reply.

Could you please send me your assembly plugin settings?

Thanks in advance,

Peter

Re: Maven + OSGI

Posted by Stuart McCulloch <mc...@gmail.com>.
2009/6/15 Peter Horlock <pe...@googlemail.com>

> No one here using OSGI + Maven?


I'm sure there are several people here using OSGi + Maven (me for one)

however, this doesn't sound like a general OSGi issue as such, because OSGi
doesn't actually mandate a
specific layout of bundles - instead your layout is specific to Equinox, the
OSGi framework used by Eclipse
(and therefore BIRT which is an Eclipse project)

you could perhaps look into using the headless Eclipse/PDE build, but this
can be painful to use - IMHO the
best (and simplest) option is just use the assembly plugin to arrange
everything

What about the plugin I found:
> http://mvn-dp-plugin.sourceforge.net/site/plugin-info.html
>
> Could that do the trick?
>

well that plugin generates standard OSGi deployment packages:


http://www.osgi.org/javadoc/r4v41/org/osgi/service/deploymentadmin/DeploymentPackage.html

which are a way to atomically install and update a collection of bundles,
managed by the deployment
admin bundle (so you need this installed) - while you can use this to deploy
apps onto a framework
it won't help you do the initial bootstrapping, so you'd still need to mimic
some of the Equinox layout

another option might be to use pax-runner to generate the Equinox layout:

   http://issues.ops4j.org/browse/PAXRUNNER-177
   http://paxrunner.ops4j.org/space/Pax+Runner

but I still think using the assembly plugin would be simplest approach
initially

Thanks,
>
> Peter
>

-- 
Cheers, Stuart

Re: Maven + OSGI

Posted by Peter Horlock <pe...@googlemail.com>.
No one here using OSGI + Maven?
What about the plugin I found:
http://mvn-dp-plugin.sourceforge.net/site/plugin-info.html

Could that do the trick?

Thanks,

Peter

Re: Maven + OSGI

Posted by Wayne Fay <wa...@gmail.com>.
> How do I combine MVN storage of the RE JARs (and other files -
> config.ini, MANIFEST.MF, ...) with the strict directory structure
> requirements at deployment time? Ideally, I'd also like to automatically
> upload the RE to the Maven repo initially.

The assembly plugin would work with the proper configuration, I'd
assume. But it does sound painful.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org