-
1. Re: install features without internet access
dhoyt Jun 26, 2011 2:47 PM (in response to sdahl)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
gertv Jun 26, 2011 5:15 PM (in response to sdahl)L.S.,
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.
Regards,
Gert
-
3. Re: install features without internet access
sdahl Jun 27, 2011 12:47 PM (in response to sdahl)Is the offline repository available only with a service agreement?
Thanks!
Sandi
-
4. Re: install features without internet access
exto Jun 27, 2011 12:52 PM (in response to sdahl)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
sdahl Jun 27, 2011 1:23 PM (in response to dhoyt)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:
\system\org\apache\servicemix\nmr\apache-servicemix-nmr\1.4.0-fuse-01-09
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.