from here http://svn.apache.org/viewvc/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java?view=markup
I got curl command: pkg=$1 curl -F"action=install" -F"_noredir_=_noredir_" -F"bundlefile=@$pkg" -F"bundlestart=start" -F"bundlestartlevel=20" -F"refreshPackages=true" -u "admin:admin" "http://localhost:8080/system/console/installl" On Mon, Oct 17, 2011 at 2:45 PM, Dan Check <[email protected]> wrote: > We use the maven plugin: > > mvn \ > org.apache.sling:maven-sling-plugin:install-file \ > -Dsling.file=./${PACKAGE}-${VERSION}.jar \ > -Dsling.url=http://${SERVER}/system/console/install \ > -Dsling.user=${SLING_USER} -Dsling.password=${SLING_PASSWORD} > > There is, perhaps, a more elegant way, in which case I'm all ears. > > Dan > > On Oct 17, 2011, at 1:31 PM, sam ” wrote: > > > Hey Dan, > > > > After drop the server out of the pool, do you use Felix Web Console to > > install the bundle? > > Or do you install the bundle some other ways? > > > > > > > > On Mon, Oct 17, 2011 at 1:18 PM, Dan Check <[email protected]> wrote: > > > >> Hi Sam, > >> > >> We've found that the best way to deploy bundles in production is to have > a > >> pool of servers at every tier, drop the server out of the pool, install > the > >> bundle, ensure that it's running properly, and add it back to the pool. > >> > >> Dan > >> > >> > >> -----Original Message----- > >> From: sam " [mailto:[email protected]] > >> Sent: Mon 10/17/2011 1:12 PM > >> To: [email protected] > >> Subject: Re: offline deployment of OSGi bundle > >> > >> And, when I set systemStartLevel to 19, I cannot use > >> /system/console/install > >> to install the bundle.. I get 503. > >> > >> Are there other ways to install OSGi bundle to felix instead of using > web > >> console? > >> > >> How do you deploy bundles to busy production server safely? > >> > >> Do you just install the bundle using web console without start level > >> modification? > >> > >> > >> > >> On Mon, Oct 17, 2011 at 1:03 PM, sam " <[email protected]> wrote: > >> > >>> What is a good systemStartLevel to set? > >>> > >>> I tried with systemStartLevel=1, and I could not access felix web > console > >>> anymore. > >>> > >>> should I use 19 since bundleStartLevel is 20? > >>> > >>> > >>> > >>> > >>> On Thu, Oct 13, 2011 at 12:13 PM, Bertrand Delacretaz < > >>> [email protected]> wrote: > >>> > >>>> On Thu, Oct 13, 2011 at 6:01 PM, sam " <[email protected]> wrote: > >>>>> so, should bundleStartLevel be higher than systemStartLevel before > >>>>> deployment? > >>>>> And after deployment, bundleStartLevel should go back to 20? > >>>> > >>>> Yes, the explanation at > >>>> > >>>> > >> > http://aaronz-sakai.blogspot.com/2009/05/osgi-system-and-bundle-start-levels.html > >>>> might help. > >>>> > >>>>> > >>>>> Do I need to stop the bundle before deploying a new version, too? > >>>>> I've been just deploying a new version of a bundle while the bundle > is > >>>>> Active. > >>>> > >>>> If you follow the scenario I suggested previously, you shouldn't need > >>>> to stop any bundles yourself, that will happen when you lower the > >>>> system start level below the current start level of some bundles. > >>>> > >>>> -Bertrand > >>>> > >>> > >>> > >> > >> >
