You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Mark Derricutt <ma...@talios.com> on 2010/10/11 01:24:19 UTC
use in feature files
Hey all,
I was wondering at what version of Karaf with the <repository> element come
into use in Karaf?
We're still running 1.4 and I'm trying write up a composite "feature set"
feature file for our app, but it looks like <repository> isn't supported (
no mention of a "since" version on the website either ).
Mark
--
Pull me down under...
Re: use in feature files
Posted by Mark Derricutt <ma...@talios.com>.
Not the current code base no - but I'll try find some time to write up a
sample project.
--
Pull me down under...
On Wed, Oct 13, 2010 at 8:46 AM, Ade <ad...@googlemail.com> wrote:
> For a total sanity check, is there anyway you can send out a copy of your
> code that I can build and check from here? Your problem is intriguing and
> non obvious...
Re: use in feature files
Posted by Ade <ad...@googlemail.com>.
Hi Mark,
For a total sanity check, is there anyway you can send out a copy of
your code that I can build and check from here? Your problem is
intriguing and non obvious...
/Ade
On 12/10/2010 03:13, Mark Derricutt wrote:
> I see in the log:
>
> 14:57:36,134 | TRACE | pool-2-thread-1 |
> MavenConfigurationImpl | n.commons.MavenConfigurationImpl 254
> | Using repositories
> [[file:/Users/amrk/.m2/repository/,releases=true,snapshots=true,
> http://build.smx.co.nz:8081/nexus/content/groups/public/,releases=true,snapshots=false,
> http://repo1.maven.org/maven2/,releases=true,snapshots=false,
> http://repository.apache.org/content/groups/snapshots-group/,releases=false,snapshots=true,
> http://repository.ops4j.org/maven2/,releases=true,snapshots=false,
> http://svn.apache.org/repos/asf/servicemix/m2-repo/,releases=true,snapshots=false,
> http://repository.springsource.com/maven/bundles/release/,releases=true,snapshots=false,
> http://repository.springsource.com/maven/bundles/external/,releases=true,snapshots=false]]
>
> This is just the list of repositories I have defined in
> etc/org.ops4j.pax.url.mvn.cfg - further in the log I see:
>
> 14:57:36,491 | TRACE | pool-2-thread-1 |
> Connection | .pax.url.mvn.internal.Connection 173
> | Possible download locations for
> [mvn:smx3/smx3.featureset/3.1.0-SNAPSHOT/xml/features]
> 14:57:36,491 | TRACE | pool-2-thread-1 |
> Connection | .pax.url.mvn.internal.Connection 176
> | Version [3.1.0-20101010.230553-0] from URL
> [file:/Users/amrk/.m2/repository/smx3/smx3.featureset/3.1.0-SNAPSHOT/smx3.featureset-3.1.0-SNAPSHOT-features.xml]
> 14:57:36,492 | TRACE | pool-2-thread-1 |
> Connection | .pax.url.mvn.internal.Connection 181
> | Downloading [Version [3.1.0-20101010.230553-0] from URL
> [file:/Users/amrk/.m2/repository/smx3/smx3.featureset/3.1.0-SNAPSHOT/smx3.featureset-3.1.0-SNAPSHOT-features.xml]]
>
> I see no reference to any repository resolution or updating of the pax
> mvn url service.
>
>
>
> --
> Pull me down under...
>
>
>
> On Mon, Oct 11, 2010 at 9:04 PM, Mark Derricutt <mark@talios.com
> <ma...@talios.com>> wrote:
>
> I'll try that in the morning when I get back to the office. Using
> the same mvn: url's directly in the org.apache.*feature.cfg file
> resolves fine and the app starts up properly.
>
> Will try with trace in the morning.
>
>
> --
> Pull me down under...
>
>
>
>
> On Mon, Oct 11, 2010 at 8:14 PM, Charles Moulliard
> <cmoulliard@gmail.com <ma...@gmail.com>> wrote:
>
> Can you enable "trace" level in your log to see which path is
> calculated to find the repository ?
>
>
>
Re: use in feature files
Posted by Mark Derricutt <ma...@talios.com>.
I see in the log:
14:57:36,134 | TRACE | pool-2-thread-1 | MavenConfigurationImpl |
n.commons.MavenConfigurationImpl 254 | Using repositories
[[file:/Users/amrk/.m2/repository/,releases=true,snapshots=true,
http://build.smx.co.nz:8081/nexus/content/groups/public/,releases=true,snapshots=false,
http://repo1.maven.org/maven2/,releases=true,snapshots=false,
http://repository.apache.org/content/groups/snapshots-group/,releases=false,snapshots=true,
http://repository.ops4j.org/maven2/,releases=true,snapshots=false,
http://svn.apache.org/repos/asf/servicemix/m2-repo/,releases=true,snapshots=false,
http://repository.springsource.com/maven/bundles/release/,releases=true,snapshots=false,
http://repository.springsource.com/maven/bundles/external/,releases=true,snapshots=false
]]
This is just the list of repositories I have defined in
etc/org.ops4j.pax.url.mvn.cfg - further in the log I see:
14:57:36,491 | TRACE | pool-2-thread-1 | Connection |
.pax.url.mvn.internal.Connection 173 | Possible download locations for
[mvn:smx3/smx3.featureset/3.1.0-SNAPSHOT/xml/features]
14:57:36,491 | TRACE | pool-2-thread-1 | Connection |
.pax.url.mvn.internal.Connection 176 | Version [3.1.0-20101010.230553-0]
from URL
[file:/Users/amrk/.m2/repository/smx3/smx3.featureset/3.1.0-SNAPSHOT/smx3.featureset-3.1.0-SNAPSHOT-features.xml]
14:57:36,492 | TRACE | pool-2-thread-1 | Connection |
.pax.url.mvn.internal.Connection 181 | Downloading [Version
[3.1.0-20101010.230553-0] from URL
[file:/Users/amrk/.m2/repository/smx3/smx3.featureset/3.1.0-SNAPSHOT/smx3.featureset-3.1.0-SNAPSHOT-features.xml]]
I see no reference to any repository resolution or updating of the pax mvn
url service.
--
Pull me down under...
On Mon, Oct 11, 2010 at 9:04 PM, Mark Derricutt <ma...@talios.com> wrote:
> I'll try that in the morning when I get back to the office. Using the same
> mvn: url's directly in the org.apache.*feature.cfg file resolves fine and
> the app starts up properly.
>
> Will try with trace in the morning.
>
>
> --
> Pull me down under...
>
>
>
>
> On Mon, Oct 11, 2010 at 8:14 PM, Charles Moulliard <cm...@gmail.com>wrote:
>
>> Can you enable "trace" level in your log to see which path is
>> calculated to find the repository ?
>>
>
>
Re: use in feature files
Posted by Mark Derricutt <ma...@talios.com>.
I'll try that in the morning when I get back to the office. Using the same
mvn: url's directly in the org.apache.*feature.cfg file resolves fine and
the app starts up properly.
Will try with trace in the morning.
--
Pull me down under...
On Mon, Oct 11, 2010 at 8:14 PM, Charles Moulliard <cm...@gmail.com>wrote:
> Can you enable "trace" level in your log to see which path is
> calculated to find the repository ?
>
Re: use in feature files
Posted by Charles Moulliard <cm...@gmail.com>.
Can you enable "trace" level in your log to see which path is
calculated to find the repository ?
On Mon, Oct 11, 2010 at 8:21 AM, Adrian Trenaman <TR...@progress.com> wrote:
> Looks like Karaf cannot resolve the 'imported' repositories from the Maven
> repository. Can you check and see that Karaf is picking up your correct
> local maven repo, and that the repo contains the repositories?
>
>
> From: Mark Derricutt [mailto:mark@talios.com]
> Sent: Sunday, October 10, 2010 09:13 PM
> To: user@karaf.apache.org <us...@karaf.apache.org>
> Subject: Re: <repository> use in feature files
>
> My feature file looks like:
>
> <features name="smx3.featureset-3.1.0-SNAPSHOT">
>
>
> <repository>mvn:com.smxemail/com.smxemail.karaf/3.0.7/xml/features</repository>
> <repository>mvn:smx3/smx3.karaf/3.0.6/xml/features</repository>
> <repository>mvn:smx3/smx3.portal.karaf/3.0.12/xml/features</repository>
>
> <repository>mvn:smx3.sites/smx3.sites.smxemail.karaf/3.0.6-SNAPSHOT/xml/features</repository>
>
> <feature name="smx3.featureset" version="3.1.0-SNAPSHOT">
> <feature>com.smxemail.karaf</feature>
> <feature>smx3-core</feature>
> <feature>smx3-portal</feature>
> <feature>smx3.sites.smxemail</feature>
> </feature>
> </features>
>
> The error I see is:
>
> 14:11:58,362 | INFO | Thread-6 | FeaturesServiceImpl |
> res.internal.FeaturesServiceImpl 250 | Error when installing feature
> smx3.featureset: java.lang.Exception: No feature named 'com.smxemail.karaf'
> with version '3.0.7' available
>
> The feature file is in the maven repository that karaf can see, as it
> previously was listed in the etc/org.apache.felix.karaf.features.cfg file.
>
> Mark
>
>
>
> --
> Pull me down under...
>
>
>
> On Mon, Oct 11, 2010 at 12:57 PM, Freeman Fang <fr...@gmail.com>
> wrote:
>>
>> Hi,
>> Karaf support repository tag in features.xml from first released version
>> 1.0.0(actually when it's Apache Servicemix Kernel it already
>> support repository tag).
>> So Karaf 1.4 support <repository>.
>> How do you use repository in features.xml? What's the error you get?
>> You should put <repository> tag under <features> tag, so that all features
>> defined in repository file is available for this features.xml
>> Freeman
>> On 2010-10-11, at 上午7:24, Mark Derricutt wrote:
>>
>> Hey all,
>>
>> I was wondering at what version of Karaf with the <repository> element
>> come into use in Karaf?
>>
>> We're still running 1.4 and I'm trying write up a composite "feature set"
>> feature file for our app, but it looks like <repository> isn't supported (
>> no mention of a "since" version on the website either ).
>>
>> Mark
>>
>>
>> --
>> Pull me down under...
>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> blog: http://freemanfang.blogspot.com
>> twitter: http://twitter.com/freemanfang
>> Open Source SOA: http://fusesource.com
>> Apache Servicemix:http://servicemix.apache.org
>> Apache Cxf: http://cxf.apache.org
>> Apache Karaf: http://karaf.apache.org
>> Apache Felix: http://felix.apache.org
>
>
Re: use in feature files
Posted by Adrian Trenaman <TR...@progress.com>.
Looks like Karaf cannot resolve the 'imported' repositories from the Maven repository. Can you check and see that Karaf is picking up your correct local maven repo, and that the repo contains the repositories?
From: Mark Derricutt [mailto:mark@talios.com]
Sent: Sunday, October 10, 2010 09:13 PM
To: user@karaf.apache.org <us...@karaf.apache.org>
Subject: Re: <repository> use in feature files
My feature file looks like:
<features name="smx3.featureset-3.1.0-SNAPSHOT">
<repository>mvn:com.smxemail/com.smxemail.karaf/3.0.7/xml/features</repository>
<repository>mvn:smx3/smx3.karaf/3.0.6/xml/features</repository>
<repository>mvn:smx3/smx3.portal.karaf/3.0.12/xml/features</repository>
<repository>mvn:smx3.sites/smx3.sites.smxemail.karaf/3.0.6-SNAPSHOT/xml/features</repository>
<feature name="smx3.featureset" version="3.1.0-SNAPSHOT">
<feature>com.smxemail.karaf</feature>
<feature>smx3-core</feature>
<feature>smx3-portal</feature>
<feature>smx3.sites.smxemail</feature>
</feature>
</features>
The error I see is:
14:11:58,362 | INFO | Thread-6 | FeaturesServiceImpl | res.internal.FeaturesServiceImpl 250 | Error when installing feature smx3.featureset: java.lang.Exception: No feature named 'com.smxemail.karaf' with version '3.0.7' available
The feature file is in the maven repository that karaf can see, as it previously was listed in the etc/org.apache.felix.karaf.features.cfg file.
Mark
--
Pull me down under...
On Mon, Oct 11, 2010 at 12:57 PM, Freeman Fang <fr...@gmail.com>> wrote:
Hi,
Karaf support repository tag in features.xml from first released version 1.0.0(actually when it's Apache Servicemix Kernel it already support repository tag).
So Karaf 1.4 support <repository>.
How do you use repository in features.xml? What's the error you get?
You should put <repository> tag under <features> tag, so that all features defined in repository file is available for this features.xml
Freeman
On 2010-10-11, at 上午7:24, Mark Derricutt wrote:
Hey all,
I was wondering at what version of Karaf with the <repository> element come into use in Karaf?
We're still running 1.4 and I'm trying write up a composite "feature set" feature file for our app, but it looks like <repository> isn't supported ( no mention of a "since" version on the website either ).
Mark
--
Pull me down under...
--
Freeman Fang
------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com<http://fusesource.com/>
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org
Re: use in feature files
Posted by Mark Derricutt <ma...@talios.com>.
My feature file looks like:
<features name="smx3.featureset-3.1.0-SNAPSHOT">
<repository>mvn:com.smxemail/com.smxemail.karaf/3.0.7/xml/features</repository>
<repository>mvn:smx3/smx3.karaf/3.0.6/xml/features</repository>
<repository>mvn:smx3/smx3.portal.karaf/3.0.12/xml/features</repository>
<repository>mvn:smx3.sites/smx3.sites.smxemail.karaf/3.0.6-SNAPSHOT/xml/features</repository>
<feature name="smx3.featureset" version="3.1.0-SNAPSHOT">
<feature>com.smxemail.karaf</feature>
<feature>smx3-core</feature>
<feature>smx3-portal</feature>
<feature>smx3.sites.smxemail</feature>
</feature>
</features>
The error I see is:
14:11:58,362 | INFO | Thread-6 | FeaturesServiceImpl |
res.internal.FeaturesServiceImpl 250 | Error when installing feature
smx3.featureset: java.lang.Exception: No feature named 'com.smxemail.karaf'
with version '3.0.7' available
The feature file is in the maven repository that karaf can see, as it
previously was listed in the etc/org.apache.felix.karaf.features.cfg file.
Mark
--
Pull me down under...
On Mon, Oct 11, 2010 at 12:57 PM, Freeman Fang <fr...@gmail.com>wrote:
> Hi,
>
> Karaf support repository tag in features.xml from first released version
> 1.0.0(actually when it's Apache Servicemix Kernel it already
> support repository tag).
> So Karaf 1.4 support <repository>.
> How do you use repository in features.xml? What's the error you get?
> You should put <repository> tag under <features> tag, so that all features
> defined in repository file is available for this features.xml
>
> Freeman
> On 2010-10-11, at 上午7:24, Mark Derricutt wrote:
>
> Hey all,
>
> I was wondering at what version of Karaf with the <repository> element come
> into use in Karaf?
>
> We're still running 1.4 and I'm trying write up a composite "feature set"
> feature file for our app, but it looks like <repository> isn't supported (
> no mention of a "since" version on the website either ).
>
> Mark
>
>
> --
> Pull me down under...
>
>
>
> --
> Freeman Fang
>
> ------------------------
> blog: http://freemanfang.blogspot.com
> twitter: http://twitter.com/freemanfang
> Open Source SOA: http://fusesource.com
> Apache Servicemix:http://servicemix.apache.org
> Apache Cxf: http://cxf.apache.org
> Apache Karaf: http://karaf.apache.org
> Apache Felix: http://felix.apache.org
>
>
Re: use in feature files
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Karaf support repository tag in features.xml from first released
version 1.0.0(actually when it's Apache Servicemix Kernel it already
support repository tag).
So Karaf 1.4 support <repository>.
How do you use repository in features.xml? What's the error you get?
You should put <repository> tag under <features> tag, so that all
features defined in repository file is available for this features.xml
Freeman
On 2010-10-11, at 上午7:24, Mark Derricutt wrote:
> Hey all,
>
> I was wondering at what version of Karaf with the <repository>
> element come into use in Karaf?
>
> We're still running 1.4 and I'm trying write up a composite "feature
> set" feature file for our app, but it looks like <repository> isn't
> supported ( no mention of a "since" version on the website either ).
>
> Mark
>
>
> --
> Pull me down under...
>
--
Freeman Fang
------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org