5 Replies Latest reply on Jun 27, 2011 12:52 PM by A E

    install features without internet access

    sandi dahl Newbie

      I am trying to document a procedure to install our custom features on servers that have no internet access. I found the features-maven-plugin and am successfully using the add-features-to-repo goal the create a local maven repo.


      There are two problems I'm having when installing my custom features from the local maven repo:

      1. The first feature contains other features and these features are not included in the local repo.


      2. The second feature I'm trying to install does not have external features as above. However, when I attempt to install this feature, the following error shows in the log and servicemix hangs.

      14:29:23,926 | ERROR | l Console Thread | FeaturesServiceImpl              | 13 - org.apache.karaf.features.core - 2.1.4.fuse-00-09 | URL mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.component/4.3.1-fuse-01-09 could not be resolved.



      Is there a better way to accomplish what I'm trying to do? If not, how can I overcome these obstacles?


        • 1. Re: install features without internet access
          Daryl Hoyt Newbie

          I have a similar situation.  It blew my mind that Servicemix doesn't have an "offline" mode.


          To get around the issue of needing internet access to install other features, I created a POM which contains all prerequisites I need, and when I ran mvn package, I moved the repository it created to the machine without internet access.  I was then able to add it to the etc/org.ops4j.pax.url.mvn.cfg file under org.ops4j.pax.url.mvn.localRepository.  I also needed to comment out all lines under org.ops4j.pax.url.mvn.repositories (but needed to leave the property there with a blank value).


          If you'd like further details, I'd be glad to provide it.

          • 2. Re: install features without internet access
            Gert Vanthienen Novice



            At FuseSource, we have an offline repository available for customer that are running ServiceMix in an offline environment.  That repository is being built together with the release kits to ensure it contains everything to install any feature available as well as run/build/test applications without requiring an internet connection.





            • 3. Re: install features without internet access
              sandi dahl Newbie

              Is the offline repository available only with a service agreement?




              • 4. Re: install features without internet access
                A E Newbie

                I think you might be able to use Archiva as a local repository, this will keep a cache of all the external resources you require as well thus improving build times.



                • 5. Re: install features without internet access
                  sandi dahl Newbie

                  Thanks for the information. I was updating the configuration file to point to my local maven repo but still had the public repos defined.


                  I found the location for all the feature file definitions in servicemix:


                  I used these feature definition to copy any dependent feature definitions to my features file. Then I had to manually download any artifacts that were not in a public repo.


                  This created a local maven repo with all dependencies. After updating the org.ops4j.pax.url.mvn.cfg as suggested, I was able to install my custom features without internet access.