I do it in production like had Christian described -- as production is "final" server, there are few servers before it - that have internet connection, so just rsync it for there to the production server once the "local" Maven repo is updated.
But based on this thread, I will look into how to build a kar package, I did not put much effort into any other way as this works for me quite OK. Or even a Cave, but all this looks too complicated. Kind Regards, Miroslav V V sre., 9. okt. 2019 ob 18:13 je oseba Jean-Baptiste Onofré < [email protected]> napisala: > Good point, or even copy the repository somewhere on the machine and add > in etc/org.ops4j.pax.url.mvn.cfg. > > Regards > JB > > On 09/10/2019 17:51, Christian Schneider wrote: > > Another approach is to start with an empty maven repo on a machine with > > internet connect. > > Then install the feature in karaf. This will populate the local maven > repo. > > You can then copy the local maven repo to your machine without internet > > access. > > This is ideal for quickly testing. > > > > For a production setup a custom karaf distro that contains karaf + your > > features is a good solution. > > > > Christian > > > > Am Mi., 9. Okt. 2019 um 13:57 Uhr schrieb Jean-Baptiste Onofré > > <[email protected] <mailto:[email protected]>>: > > > > Hi, > > > > you can: > > > > 1. populate the Karaf system folder manually or using mvn > > deploy:deploy-file or mvn install:install-file > > 2. you can create a kar on a machine connected to Internet and then > > deploy the kar > > 3. you can install cave on a machine with Internet access and use as > > a proxy > > > > Probably the quickest approach is 1, you just populate the Karaf > system > > folder (which is basically a embedded Maven repository). > > > > Regards > > JB > > > > On 09/10/2019 13:09, imranrazakhan wrote: > > > I have karaf deployed but with no internet connectivity, Now i > have to > > > install jolokia on it but getting below error > > > > > > @root()> feature:install jolokia > > > > > Error executing command: Error: > > > > > Error downloading mvn:org.jolokia/jolokia-osgi/1.3.5 > > > > > > How i can install offline? > > > > > > > > > > > > -- > > > Sent from: > http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > > > > > > > -- > > Jean-Baptiste Onofré > > [email protected] <mailto:[email protected]> > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > > > > > > > -- > > -- > > Christian Schneider > > http://www.liquid-reality.de > > > > Computer Scientist > > http://www.adobe.com > > > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Miroslav Beranič MIBESIS [email protected] https://www.mibesis.si
