You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by imranrazakhan <im...@gmail.com> on 2019/10/09 11:09:17 UTC
How to install bundle Offline
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
Re: How to install bundle Offline
Posted by Christian Schneider <ch...@die-schneider.net>.
If you do not change the server in production at runtime then I recommend
the karaf custom distribution way.
The name sounds daunting maybe but it is much easier than it seems.
The result is a single deployment unit tar.gz or zip that you simply unpack
on your system and run. It contains karaf and your bundles and auto starts
your needed features.
Christian
Am Mi., 9. Okt. 2019 um 23:50 Uhr schrieb Miroslav Beranič <
miroslav.beranic@mibesis.si>:
> 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é <
> jb@nanthrax.net> 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é
>> > <jb@nanthrax.net <ma...@nanthrax.net>>:
>> >
>> > 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é
>> > jbonofre@apache.org <ma...@apache.org>
>> > 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é
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
> --
> Miroslav Beranič
> MIBESIS
> miroslav.beranic@mibesis.si
> https://www.mibesis.si
>
--
--
Christian Schneider
http://www.liquid-reality.de
Computer Scientist
http://www.adobe.com
Re: How to install bundle Offline
Posted by Miroslav Beranič <mi...@mibesis.si>.
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é <
jb@nanthrax.net> 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é
> > <jb@nanthrax.net <ma...@nanthrax.net>>:
> >
> > 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é
> > jbonofre@apache.org <ma...@apache.org>
> > 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Miroslav Beranič
MIBESIS
miroslav.beranic@mibesis.si
https://www.mibesis.si
Re: How to install bundle Offline
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
> <jb@nanthrax.net <ma...@nanthrax.net>>:
>
> 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é
> jbonofre@apache.org <ma...@apache.org>
> 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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: How to install bundle Offline
Posted by Christian Schneider <ch...@die-schneider.net>.
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é <
jb@nanthrax.net>:
> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
--
Christian Schneider
http://www.liquid-reality.de
Computer Scientist
http://www.adobe.com
Re: How to install bundle Offline
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com