Quantcast

<repository> use in feature files

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

<repository> use in feature files

Mark Derricutt
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...

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Freeman-2
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

------------------------

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Mark Derricutt
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 <[hidden email]> 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

------------------------


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Adrian Trenaman-2
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:[hidden email]]
Sent: Sunday, October 10, 2010 09:13 PM
To: [hidden email] <[hidden email]>
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 <[hidden email]> 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

------------------------


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Charles Moulliard
Administrator
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 <[hidden email]> 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:[hidden email]]
> Sent: Sunday, October 10, 2010 09:13 PM
> To: [hidden email] <[hidden email]>
> 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 <[hidden email]>
> 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
>
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Mark Derricutt
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 <[hidden email]> wrote:
Can you enable "trace" level in your log to see which path is
calculated to find the repository ?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Mark Derricutt
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 <[hidden email]> 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 <[hidden email]> wrote:
Can you enable "trace" level in your log to see which path is
calculated to find the repository ?


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

adrian.trenaman
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 <[hidden email]
> <mailto:[hidden email]>> 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
>     <[hidden email] <mailto:[hidden email]>> wrote:
>
>         Can you enable "trace" level in your log to see which path is
>         calculated to find the repository ?
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: <repository> use in feature files

Mark Derricutt
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 <[hidden email]> 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...

Loading...