0

I have my my osgi bundles built. I would like to know is there any maven commands available to deploy and run these bundles in equinox, as we have for jboss-as (mvn jboss-as:deploy & mvn jboss-as:undeploy)? If yes, any good tutorials for the same? Thanks

Maheshwaran K
  • 1,982
  • 5
  • 19
  • 22
  • Why do you want to use a build tool to type commands into an interactive runtime environment? – Neil Bartlett Mar 15 '13 at 13:21
  • @Neil Bartlett I am trying to write a shell script of maven commands that would execute on the server and thats why I want the controlling of bundles to be done by maven commands. Is there any way for that? – Maheshwaran K Mar 18 '13 at 04:59

2 Answers2

0

You can add Pax Runner support to your Maven projects building the bundles (works best when the whole bundle-based app is being built via a reactor POM), and use mvn install pax:provision to deploy and run the bundles in Equinox via a proper configuration of the Maven pax plugin.

The Maven Cookbook section 1.2. Generating an OSGi Project with Maven has a description how to create a new empty project with Pax Runner support, and with some work you can retrofit its configuration to an existing project -- the description is a bit lengthy so I moved it to a separate blog post.

-1

Try install <bundle-jar>. This should work. See http://www.javacodegeeks.com/2011/06/osgi-using-maven-equinox.html for details

abhinav
  • 1,252
  • 10
  • 27
  • Is'nt that an equinox command? I am searching for Maven commands to execute. In the case of jboss if i run the command "mvn jboss-as:deploy" from command prompt , my bundle will automatically deployed in jboss container. – Maheshwaran K Mar 15 '13 at 12:41