2 Replies Latest reply on Oct 12, 2010 8:36 AM by dark cloud

    osgi:install and mvn url

    dark cloud Newbie

      Hi I am using fuse 4.2.0. and I looked around the forum and could not find situation  which is similar to mine.


      I would like to build my osgi bundles on different machine then fuse service mix is running.  say the one using to build osgi bundles is called "build_box".


      that "build_box" also has "artifactory repository server" running and serving my bundles using http.


      and there is other machine running fuse service mix 4 lets call it "server_box". I would like to INSTALL and UPDATE osgi bundles from "server_box" using http.


      Could someone provide me example configuration that I can follow. Thanks in advance.



        • 1. Re: osgi:install and mvn url
          Gert Vanthienen Novice



          It's possible to just use the http: url for your artifact directly in the osgi:install and osgi:update commands:

          osgi:install -s http://artifactory.server/path/to/artifact.jar


          However, in the long run, it's better to configure the mvn: URL handler to access your internal Artifactory server.  In order to do that, you have to add the http: url for your Artifactory server to org.ops4j.pax.url.mvn.repositories property in the etc/org.ops4j.pax.url.mvn.cfg configuration file.


          After that, you can install your bundle by using the mvn: url and the underlying handler will go and download it from your Artifactory server:

          osgi:install -s mvn:<group id>:<artifact id>:<version>





          • 2. Re: osgi:install and mvn url
            dark cloud Newbie

            Hi Thank you so much for the reply. The last part you mentioned is what I needed.

            I would also like to see some examples in action. Thanks