Hi Sriharsha, Sriharsha schrieb: > Hi., > I am using Felix 1.4 and OBR and Bindex for an Swing-OSGi application > development. > My maven local repository as well as my Felix repository is same. > > Repository folder is "FelixRepo" folder under tomcat's webapp folder. > > I have started Felix and i got Felix console . > I have added a repository url using following obr command. > > obr add-url http://localhost:8080/FelixRepo/repository.xml > > Which works fine and I can do the desired taks with this. > > If I add one more bundle to FelixRepo, say SimpleHelloBundle.jar which is > built by Maven-Bundle-Plugin, which updates my repository.xml file with the > information of SimpleHelloBundle under "FelixRepo" folder. > > My question is > > 1. Do i need to add the above url to felix again? i.e, do i need to run > > obr add-url http://localhost:8080/FelixRepo/repository.xml > > again?
No, on the "OSGi Repository" page you find a "Refresh" button to the right of each registered repository. Simply press refresh for the one you registered. > > 2. Second question is, is there any way that I can start my > SimpleHelloBundle.jar without typing the following line at Felix Console? > > obr deploy SimpleHelloBundle > > Actually I have to build some ten such bundles using Maven-Bundle-plugin, > (which is anyway updates the repository.xml) also I have to start them at > Felix Console. > > Going to Felix Console and typing the obr deploy for ten bundles is not an > issue, but I wanted to automate this with out having a pain of typing > manually at Felix console. > > Please suggest a way. We also control and build our bundles with Maven in Apache Sling. To simplify the build and automatic deployment we have created a Maven plugin, the Maven Sling Plugin, which is able to install (and start) a bundle in an OSGi framework running the web console. You might want to refer to http://incubator.apache.org/sling/site/sling.html for more information. The current release version of the plugin is 2.0.2-incubator. I generally use this command line to build and install bundles: $ mvn clean package -Dsling.url=http://localhost:7402/system/console \ org.apache.sling:maven-sling-plugin:2.0.2-incubator:install wher you just have to fix the host, port and actual URL to your web console. Hope this helps. Regards Felix > > Thanks in advance > Sriharsha. > > ----- > Sriharsha > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

