You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Dan Tran <da...@gmail.com> on 2011/04/05 02:57:45 UTC

Looking for bundle service to download a maven artifact

Hi

Karaf can download and install features with bundles using mvn:xxx
url.  Does that interface ( service ) expose somewhere? so that I can
download a given maven artifact into karaf's local disk space, to be
processed later?

Thanks for all the help.

-Dan

Re: Looking for bundle service to download a maven artifact

Posted by David Jencks <da...@yahoo.com>.
bundleContext.installBundle("mvn://.....")?

or 
bundleContext.installBundle("wrap:mvn:....")?

(not sure which order the wrap and mvn go in)

if its just an artifact that you don't want treated as a bundle, I'm not sure what to do.

thanks
david jencks

On Apr 4, 2011, at 10:46 PM, Dan Tran wrote:

> I was hoping to to take advantage of the service that already aware of
> org.ops4j.pax.url.mvn.cfg
> 
> -Dan
> 
> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>> hey dan,
>> 
>> for that uc I am afraid the features service is not sufficient. I think it
>> is best to directly take the aether libs.
>> 
>> kind regards,
>> Andreas
>> 
>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>> Hi Andreas,
>>> 
>>> I just need to download any arbitrary artifact ( for example
>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>> karaf
>>> 
>>> 
>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>> Hey Dan,
>>>> 
>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>> [1]. Simply add the following to your blueprint file to use it:
>>>> 
>>>> <reference id="featuresService"
>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>> 
>>>> Hope this helps and kind regards,
>>>> Andreas
>>>> 
>>>> [1]
>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>> 
>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>> Hi
>>>>> 
>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>> processed later?
>>>>> 
>>>>> Thanks for all the help.
>>>>> 
>>>>> -Dan
>>>>> 
>>>> 
>> 


Re: Looking for bundle service to download a maven artifact

Posted by Dan Tran <da...@gmail.com>.
Just want to follow up with this topic.

Under Karaf   URL class understands "mvn" url protocol out of the box.
There is no need to implement URLStreamFactoryHandler

Thanks

-Dan

On Tue, Apr 5, 2011 at 7:55 PM, Dan Tran <da...@gmail.com> wrote:
> coolest. Thanks for all the helps
>
> -D
>
> On Tue, Apr 5, 2011 at 6:30 PM, Guillaume Nodet <gn...@gmail.com> wrote:
>> Yes.  From the karaf console just try:
>>  shell:cat mvn:org.apache.karaf.assemblies.features/standard/2.2.0-SNAPSHOT/xml/features
>>
>> It will work and it just creates a java.net.URL and display the content.
>>
>> On Wed, Apr 6, 2011 at 00:00, Dan Tran <da...@gmail.com> wrote:
>>> umm, standard URL class understand karaf's maven specific url?
>>>
>>> Thanks
>>>
>>> -Dan
>>>
>>> On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
>>> <ge...@gmail.com> wrote:
>>>> L.S.,
>>>>
>>>> Since the mvn: URL handler is available to you when you're running
>>>> your code inside the container, you should be able to just create a
>>>> URL instance and read from its InputStream.
>>>>
>>>> Something like
>>>>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>>>>  InputStream is = url.openConnection().getInputStream()
>>>>  // now read from the stream and write the bytes to a FileOutputStream
>>>>
>>>> Regards,
>>>>
>>>> Gert Vanthienen
>>>> ------------------------
>>>> FuseSource
>>>> Web: http://fusesource.com
>>>> Blog: http://gertvanthienen.blogspot.com/
>>>>
>>>>
>>>>
>>>> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
>>>>> I was hoping to to take advantage of the service that already aware of
>>>>> org.ops4j.pax.url.mvn.cfg
>>>>>
>>>>> -Dan
>>>>>
>>>>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>>> hey dan,
>>>>>>
>>>>>> for that uc I am afraid the features service is not sufficient. I think it
>>>>>> is best to directly take the aether libs.
>>>>>>
>>>>>> kind regards,
>>>>>> Andreas
>>>>>>
>>>>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>>>>>> Hi Andreas,
>>>>>>>
>>>>>>> I just need to download any arbitrary artifact ( for example
>>>>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>>>>> karaf
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>>>>> Hey Dan,
>>>>>>>>
>>>>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>>>>
>>>>>>>> <reference id="featuresService"
>>>>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>>>>
>>>>>>>> Hope this helps and kind regards,
>>>>>>>> Andreas
>>>>>>>>
>>>>>>>> [1]
>>>>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>>>>
>>>>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>>>>> processed later?
>>>>>>>>>
>>>>>>>>> Thanks for all the help.
>>>>>>>>>
>>>>>>>>> -Dan
>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>

Re: Looking for bundle service to download a maven artifact

Posted by Dan Tran <da...@gmail.com>.
coolest. Thanks for all the helps

-D

On Tue, Apr 5, 2011 at 6:30 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> Yes.  From the karaf console just try:
>  shell:cat mvn:org.apache.karaf.assemblies.features/standard/2.2.0-SNAPSHOT/xml/features
>
> It will work and it just creates a java.net.URL and display the content.
>
> On Wed, Apr 6, 2011 at 00:00, Dan Tran <da...@gmail.com> wrote:
>> umm, standard URL class understand karaf's maven specific url?
>>
>> Thanks
>>
>> -Dan
>>
>> On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
>> <ge...@gmail.com> wrote:
>>> L.S.,
>>>
>>> Since the mvn: URL handler is available to you when you're running
>>> your code inside the container, you should be able to just create a
>>> URL instance and read from its InputStream.
>>>
>>> Something like
>>>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>>>  InputStream is = url.openConnection().getInputStream()
>>>  // now read from the stream and write the bytes to a FileOutputStream
>>>
>>> Regards,
>>>
>>> Gert Vanthienen
>>> ------------------------
>>> FuseSource
>>> Web: http://fusesource.com
>>> Blog: http://gertvanthienen.blogspot.com/
>>>
>>>
>>>
>>> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
>>>> I was hoping to to take advantage of the service that already aware of
>>>> org.ops4j.pax.url.mvn.cfg
>>>>
>>>> -Dan
>>>>
>>>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>> hey dan,
>>>>>
>>>>> for that uc I am afraid the features service is not sufficient. I think it
>>>>> is best to directly take the aether libs.
>>>>>
>>>>> kind regards,
>>>>> Andreas
>>>>>
>>>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>>>>> Hi Andreas,
>>>>>>
>>>>>> I just need to download any arbitrary artifact ( for example
>>>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>>>> karaf
>>>>>>
>>>>>>
>>>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>>>> Hey Dan,
>>>>>>>
>>>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>>>
>>>>>>> <reference id="featuresService"
>>>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>>>
>>>>>>> Hope this helps and kind regards,
>>>>>>> Andreas
>>>>>>>
>>>>>>> [1]
>>>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>>>
>>>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>>>> processed later?
>>>>>>>>
>>>>>>>> Thanks for all the help.
>>>>>>>>
>>>>>>>> -Dan
>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: Looking for bundle service to download a maven artifact

Posted by Guillaume Nodet <gn...@gmail.com>.
Yes.  From the karaf console just try:
  shell:cat mvn:org.apache.karaf.assemblies.features/standard/2.2.0-SNAPSHOT/xml/features

It will work and it just creates a java.net.URL and display the content.

On Wed, Apr 6, 2011 at 00:00, Dan Tran <da...@gmail.com> wrote:
> umm, standard URL class understand karaf's maven specific url?
>
> Thanks
>
> -Dan
>
> On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
> <ge...@gmail.com> wrote:
>> L.S.,
>>
>> Since the mvn: URL handler is available to you when you're running
>> your code inside the container, you should be able to just create a
>> URL instance and read from its InputStream.
>>
>> Something like
>>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>>  InputStream is = url.openConnection().getInputStream()
>>  // now read from the stream and write the bytes to a FileOutputStream
>>
>> Regards,
>>
>> Gert Vanthienen
>> ------------------------
>> FuseSource
>> Web: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>>
>>
>>
>> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
>>> I was hoping to to take advantage of the service that already aware of
>>> org.ops4j.pax.url.mvn.cfg
>>>
>>> -Dan
>>>
>>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>> hey dan,
>>>>
>>>> for that uc I am afraid the features service is not sufficient. I think it
>>>> is best to directly take the aether libs.
>>>>
>>>> kind regards,
>>>> Andreas
>>>>
>>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>>>> Hi Andreas,
>>>>>
>>>>> I just need to download any arbitrary artifact ( for example
>>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>>> karaf
>>>>>
>>>>>
>>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>>> Hey Dan,
>>>>>>
>>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>>
>>>>>> <reference id="featuresService"
>>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>>
>>>>>> Hope this helps and kind regards,
>>>>>> Andreas
>>>>>>
>>>>>> [1]
>>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>>
>>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>>>> Hi
>>>>>>>
>>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>>> processed later?
>>>>>>>
>>>>>>> Thanks for all the help.
>>>>>>>
>>>>>>> -Dan
>>>>>>>
>>>>>>
>>>>
>>>
>>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: Looking for bundle service to download a maven artifact

Posted by Łukasz Dywicki <lu...@code-house.org>.
Hi,
URLs are configurable by default. You may provide own stream handler for specific prefixes like mvn, wrap and so on. It's exactelly how pax url works. Key components here are URLStreamHandler and URLStreamHandlerFactory.

--
LD

> umm, standard URL class understand karaf's maven specific url?
> 
> Thanks
> 
> -Dan
> 
> On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
> <ge...@gmail.com> wrote:
>> L.S.,
>> 
>> Since the mvn: URL handler is available to you when you're running
>> your code inside the container, you should be able to just create a
>> URL instance and read from its InputStream.
>> 
>> Something like
>>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>>  InputStream is = url.openConnection().getInputStream()
>>  // now read from the stream and write the bytes to a FileOutputStream
>> 
>> Regards,
>> 
>> Gert Vanthienen
>> ------------------------
>> FuseSource
>> Web: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>> 
>> 
>> 
>> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
>>> I was hoping to to take advantage of the service that already aware of
>>> org.ops4j.pax.url.mvn.cfg
>>> 
>>> -Dan
>>> 
>>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>> hey dan,
>>>> 
>>>> for that uc I am afraid the features service is not sufficient. I think it
>>>> is best to directly take the aether libs.
>>>> 
>>>> kind regards,
>>>> Andreas
>>>> 
>>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>>>> Hi Andreas,
>>>>> 
>>>>> I just need to download any arbitrary artifact ( for example
>>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>>> karaf
>>>>> 
>>>>> 
>>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>>> Hey Dan,
>>>>>> 
>>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>> 
>>>>>> <reference id="featuresService"
>>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>> 
>>>>>> Hope this helps and kind regards,
>>>>>> Andreas
>>>>>> 
>>>>>> [1]
>>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>> 
>>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>>>> Hi
>>>>>>> 
>>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>>> processed later?
>>>>>>> 
>>>>>>> Thanks for all the help.
>>>>>>> 
>>>>>>> -Dan
>>>>>>> 
>>>>>> 
>>>> 
>>> 
>> 


Re: Looking for bundle service to download a maven artifact

Posted by Dan Tran <da...@gmail.com>.
umm, standard URL class understand karaf's maven specific url?

Thanks

-Dan

On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
<ge...@gmail.com> wrote:
> L.S.,
>
> Since the mvn: URL handler is available to you when you're running
> your code inside the container, you should be able to just create a
> URL instance and read from its InputStream.
>
> Something like
>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>  InputStream is = url.openConnection().getInputStream()
>  // now read from the stream and write the bytes to a FileOutputStream
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> FuseSource
> Web: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
>> I was hoping to to take advantage of the service that already aware of
>> org.ops4j.pax.url.mvn.cfg
>>
>> -Dan
>>
>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>>> hey dan,
>>>
>>> for that uc I am afraid the features service is not sufficient. I think it
>>> is best to directly take the aether libs.
>>>
>>> kind regards,
>>> Andreas
>>>
>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>>> Hi Andreas,
>>>>
>>>> I just need to download any arbitrary artifact ( for example
>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>> karaf
>>>>
>>>>
>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>>> Hey Dan,
>>>>>
>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>
>>>>> <reference id="featuresService"
>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>
>>>>> Hope this helps and kind regards,
>>>>> Andreas
>>>>>
>>>>> [1]
>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>
>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>>> Hi
>>>>>>
>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>> processed later?
>>>>>>
>>>>>> Thanks for all the help.
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>
>>>
>>
>

Re: Looking for bundle service to download a maven artifact

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,

Since the mvn: URL handler is available to you when you're running
your code inside the container, you should be able to just create a
URL instance and read from its InputStream.

Something like
  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
  InputStream is = url.openConnection().getInputStream()
  // now read from the stream and write the bytes to a FileOutputStream

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <da...@gmail.com> wrote:
> I was hoping to to take advantage of the service that already aware of
> org.ops4j.pax.url.mvn.cfg
>
> -Dan
>
> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
>> hey dan,
>>
>> for that uc I am afraid the features service is not sufficient. I think it
>> is best to directly take the aether libs.
>>
>> kind regards,
>> Andreas
>>
>> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>>> Hi Andreas,
>>>
>>> I just need to download any arbitrary artifact ( for example
>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>> karaf
>>>
>>>
>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>>> Hey Dan,
>>>>
>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>
>>>> <reference id="featuresService"
>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>
>>>> Hope this helps and kind regards,
>>>> Andreas
>>>>
>>>> [1]
>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>
>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>>> Hi
>>>>>
>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>> processed later?
>>>>>
>>>>> Thanks for all the help.
>>>>>
>>>>> -Dan
>>>>>
>>>>
>>
>

Re: Looking for bundle service to download a maven artifact

Posted by Dan Tran <da...@gmail.com>.
I was hoping to to take advantage of the service that already aware of
org.ops4j.pax.url.mvn.cfg

-Dan

On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <an...@gmail.com> wrote:
> hey dan,
>
> for that uc I am afraid the features service is not sufficient. I think it
> is best to directly take the aether libs.
>
> kind regards,
> Andreas
>
> On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
>> Hi Andreas,
>>
>> I just need to download any arbitrary artifact ( for example
>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>> karaf
>>
>>
>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>>> Hey Dan,
>>>
>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>> [1]. Simply add the following to your blueprint file to use it:
>>>
>>> <reference id="featuresService"
>>> interface="org.apache.karaf.features.FeaturesService" />
>>>
>>> Hope this helps and kind regards,
>>> Andreas
>>>
>>> [1]
>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>
>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>>> Hi
>>>>
>>>> Karaf can download and install features with bundles using mvn:xxx
>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>> download a given maven artifact into karaf's local disk space, to be
>>>> processed later?
>>>>
>>>> Thanks for all the help.
>>>>
>>>> -Dan
>>>>
>>>
>

Re: Looking for bundle service to download a maven artifact

Posted by Andreas Pieber <an...@gmail.com>.
hey dan,

for that uc I am afraid the features service is not sufficient. I think it
is best to directly take the aether libs.

kind regards,
Andreas
On Apr 5, 2011 5:32 AM, "Dan Tran" <da...@gmail.com> wrote:
> Hi Andreas,
>
> I just need to download any arbitrary artifact ( for example
> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
> karaf
>
>
> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
>> Hey Dan,
>>
>> I assume you're looking for org.apache.karaf.features.FeaturesService
>> [1]. Simply add the following to your blueprint file to use it:
>>
>> <reference id="featuresService"
>> interface="org.apache.karaf.features.FeaturesService" />
>>
>> Hope this helps and kind regards,
>> Andreas
>>
>> [1]
http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>
>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>>> Hi
>>>
>>> Karaf can download and install features with bundles using mvn:xxx
>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>> download a given maven artifact into karaf's local disk space, to be
>>> processed later?
>>>
>>> Thanks for all the help.
>>>
>>> -Dan
>>>
>>

Re: Looking for bundle service to download a maven artifact

Posted by Dan Tran <da...@gmail.com>.
Hi Andreas,

I just need to download any arbitrary  artifact ( for example
mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
karaf


On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <an...@gmail.com> wrote:
> Hey Dan,
>
> I assume you're looking for org.apache.karaf.features.FeaturesService
> [1]. Simply add the following to your blueprint file to use it:
>
> <reference id="featuresService"
> interface="org.apache.karaf.features.FeaturesService" />
>
> Hope this helps and kind regards,
> Andreas
>
> [1] http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>
> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
>> Hi
>>
>> Karaf can download and install features with bundles using mvn:xxx
>> url.  Does that interface ( service ) expose somewhere? so that I can
>> download a given maven artifact into karaf's local disk space, to be
>> processed later?
>>
>> Thanks for all the help.
>>
>> -Dan
>>
>

Re: Looking for bundle service to download a maven artifact

Posted by Andreas Pieber <an...@gmail.com>.
Hey Dan,

I assume you're looking for org.apache.karaf.features.FeaturesService
[1]. Simply add the following to your blueprint file to use it:

<reference id="featuresService"
interface="org.apache.karaf.features.FeaturesService" />

Hope this helps and kind regards,
Andreas

[1] http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java

On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <da...@gmail.com> wrote:
> Hi
>
> Karaf can download and install features with bundles using mvn:xxx
> url.  Does that interface ( service ) expose somewhere? so that I can
> download a given maven artifact into karaf's local disk space, to be
> processed later?
>
> Thanks for all the help.
>
> -Dan
>