|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
One click bundle deployment with mavenHi *,
today on my way home from work I had an idea how to improve my development cycles. I was not happy with the way bundles are updated in the osgi runtime. In my case I build the plugin with maven (maven bundle plugin), install it into the local maven repo and then install it with the osgi console (install file:/...) or update it respectively. Too much typing for me. No my idea: 1. Create a osgi bundle which starts a basic http server on some port. 2. Create a maven plugin, which connects to this server and tells it, which bundle has to be replaced and where the new file can be found on the filesystem. The server bundle will then have a look, if the bundle is installed. if it is, it will be uninstalled. Then the new bundle will be installed and started. One hour of hacking and now I have a one-click bundle deployment. You can find the osgi bundle and the maven plugin here (public domain for now). WARNING: This is just a prototype! http://hampelratte.org/zeugs/bundle-hotswap.tar.gz http://hampelratte.org/zeugs/maven-osgi-hotswap-plugin.tar.gz Usage: mvn package osgi-hotswap:hotswap What do you think? Cheers Henrik --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: One click bundle deployment with mavenHi Henrik,
Sounds interesting. In Apache Sling we have followed a similar approach: We have a plugin, we call it the Maven Sling Plugin, which can install (or update) a bundle directly into the OSGi framework by leveraging the HTTP API provided by the Web Console. You find more information on the Maven Sling Plugin at [1]. Regards Felix [1] http://sling.apache.org/site/sling.html Henrik Niehaus schrieb: > Hi *, > > today on my way home from work I had an idea how to improve my > development cycles. I was not happy with the way bundles are updated in > the osgi runtime. In my case I build the plugin with maven (maven bundle > plugin), install it into the local maven repo and then install it with > the osgi console (install file:/...) or update it respectively. Too much > typing for me. > > No my idea: > 1. Create a osgi bundle which starts a basic http server on some port. > 2. Create a maven plugin, which connects to this server and tells it, > which bundle has to be replaced and where the new file can be found on > the filesystem. The server bundle will then have a look, if the bundle > is installed. > if it is, it will be uninstalled. Then the new bundle will be installed > and started. > > One hour of hacking and now I have a one-click bundle deployment. > You can find the osgi bundle and the maven plugin here (public domain > for now). WARNING: This is just a prototype! > > http://hampelratte.org/zeugs/bundle-hotswap.tar.gz > http://hampelratte.org/zeugs/maven-osgi-hotswap-plugin.tar.gz > > Usage: mvn package osgi-hotswap:hotswap > > What do you think? > > Cheers > Henrik > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: One click bundle deployment with maven+1
mvn sling:install does this just fine and despit the name doesn't depend on Sling. I usually bind it to the install phase with a profile so mvn -P sling install Does both the install to the local maven repo and the install to Felix. Justin On Oct 22, 2009, at 3:36 PM, "Felix Meschberger" <fmeschbe@...> wrote: > Hi Henrik, > > Sounds interesting. > > In Apache Sling we have followed a similar approach: We have a plugin, > we call it the Maven Sling Plugin, which can install (or update) a > bundle directly into the OSGi framework by leveraging the HTTP API > provided by the Web Console. > > You find more information on the Maven Sling Plugin at [1]. > > Regards > Felix > > [1] http://sling.apache.org/site/sling.html > > > Henrik Niehaus schrieb: >> Hi *, >> >> today on my way home from work I had an idea how to improve my >> development cycles. I was not happy with the way bundles are >> updated in >> the osgi runtime. In my case I build the plugin with maven (maven >> bundle >> plugin), install it into the local maven repo and then install it >> with >> the osgi console (install file:/...) or update it respectively. Too >> much >> typing for me. >> >> No my idea: >> 1. Create a osgi bundle which starts a basic http server on some >> port. >> 2. Create a maven plugin, which connects to this server and tells it, >> which bundle has to be replaced and where the new file can be found >> on >> the filesystem. The server bundle will then have a look, if the >> bundle >> is installed. >> if it is, it will be uninstalled. Then the new bundle will be >> installed >> and started. >> >> One hour of hacking and now I have a one-click bundle deployment. >> You can find the osgi bundle and the maven plugin here (public domain >> for now). WARNING: This is just a prototype! >> >> http://hampelratte.org/zeugs/bundle-hotswap.tar.gz >> http://hampelratte.org/zeugs/maven-osgi-hotswap-plugin.tar.gz >> >> Usage: mvn package osgi-hotswap:hotswap >> >> What do you think? >> >> Cheers >> Henrik >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |