You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by lbu <lb...@gmail.com> on 2013/02/03 17:29:32 UTC

karaf features and maven urls

Hi,
I would like to know if it possible to set a repository alongside a karaf
feauture e.g:

<feature name="my-feautre-1" version="1.0.0"
repository="http://maven.mycompany.com">
<feature name="my-feautre-2" version="1.0.0" repository="file:///opt/maven">
<feature name="my-feautre-3" version="1.0.0"
repository="file://${env.HOME}/.m2/repository">

So we can avoid to search in the repository chain configured via config
admin if we know where a bundle is and where it isn't





--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf features and maven urls

Posted by Freeman Fang <fr...@gmail.com>.
No, I don't think so.
As different bundles in a certain feature may use different maven repo.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-2-4, at 下午3:56, lbu wrote:

> 
> Thx all. 
> 
> May it make sense to have it on feature level? 
> 
> 
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592p4027608.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf features and maven urls

Posted by lbu <lb...@gmail.com>.
It is a know bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=385413 




--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592p4027611.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf features and maven urls

Posted by lbu <lb...@gmail.com>.
Thx all. 

May it make sense to have it on feature level? 





--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592p4027608.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf features and maven urls

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

It's not possible for a feature, but can do it for a bundle, something like
<bundle dependency='true'>mvn:http://maven.restlet.org!org.restlet.jse/org.restlet/${restlet-version}</bundle>
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-2-4, at 上午12:29, lbu wrote:

> Hi,
> I would like to know if it possible to set a repository alongside a karaf
> feauture e.g:
> 
> <feature name="my-feautre-1" version="1.0.0"
> repository="http://maven.mycompany.com">
> <feature name="my-feautre-2" version="1.0.0" repository="file:///opt/maven">
> <feature name="my-feautre-3" version="1.0.0"
> repository="file://${env.HOME}/.m2/repository">
> 
> So we can avoid to search in the repository chain configured via config
> admin if we know where a bundle is and where it isn't
> 
> 
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


Re: karaf features and maven urls

Posted by Christian Müller <ch...@gmail.com>.
The current schema [1] doesn't support it.

[1]
http://karaf.apache.org/manual/2.3.0/users-guide/provisioning-schema.html

Best,
Christian

On Sun, Feb 3, 2013 at 5:29 PM, lbu <lb...@gmail.com> wrote:

> Hi,
> I would like to know if it possible to set a repository alongside a karaf
> feauture e.g:
>
> <feature name="my-feautre-1" version="1.0.0"
> repository="http://maven.mycompany.com">
> <feature name="my-feautre-2" version="1.0.0"
> repository="file:///opt/maven">
> <feature name="my-feautre-3" version="1.0.0"
> repository="file://${env.HOME}/.m2/repository">
>
> So we can avoid to search in the repository chain configured via config
> admin if we know where a bundle is and where it isn't
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



--