Run myapp.bndrun from maven

14 views
Skip to first unread message

Florian Pirchner

unread,
Nov 23, 2016, 3:28:48 PM11/23/16
to bndtool...@googlegroups.com
I am contributing an OS-Project (vaadin osgi). And we need to use a combination with bndtools and maven. Setting up the project was pretty straight forward and works well...

My question:
Is there a way to run the OSGi container defined in the bndrun file from maven?

Like "mvn clean verify bnd:run"

I know there is the bnd-export-plugin. And this jar is executed by the EmbeddedLauncher.

But is there also a way to run the application directly from commandline with maven?

How can i do so?

Thanks,
Florian

BJ Hargrave

unread,
Nov 23, 2016, 4:50:10 PM11/23/16
to bndtool...@googlegroups.com
In 3.4 we have added a bnd-testing-maven-plugin to run a framework for testing purposes. We have also added function to the gradle plugin to run bndrun files. But I don't think we have a maven plugin to run bndrun files absent testing.

You may want to look at the work mentioned above and consider contributing a bnd-run-maven-plugin.



--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
BJ

Florian Pirchner

unread,
Nov 23, 2016, 4:58:35 PM11/23/16
to bndtool...@googlegroups.com
Hey bj,

gradle sounds interesting. I know that gradle is pretty powerful. but never came in touch.

And having a bnd-run-maven plugin would be great too. I will try to implement one based on the testing plugin ;)

Thanks a lot for input
Flo

BJ Hargrave

unread,
Nov 23, 2016, 5:01:13 PM11/23/16
to bndtool...@googlegroups.com

Florian Pirchner

unread,
Nov 23, 2016, 5:02:48 PM11/23/16
to bndtool...@googlegroups.com

Thanks...

Right now I opened the gradle website to learn :D

Reply all
Reply to author
Forward
0 new messages