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

Reply via email to