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 dant...@gmail.com wrote:
coolest. Thanks for all the helps
-D
On Tue, Apr
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 =
coolest. Thanks for all the helps
-D
On Tue, Apr 5, 2011 at 6:30 PM, Guillaume Nodet gno...@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
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
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]
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 dant...@gmail.com wrote:
Hi Andreas,
I just need to download any arbitrary artifact ( for example
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 anpie...@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