Re: Karaf 4.0.x Custom distribution

2016-06-20 Thread Jean-Baptiste Onofré

Hi Lukas,

After a quick glance, I don't see framework as boot feature.

That's probably the missing part.

Regards
JB

On 06/20/2016 12:48 PM, Roedl Lukas wrote:

Hi!

I'm currently trying to upgrade our custom distribution to the Karaf 4 way of 
doing things.
Unfortunately I'm experiencing some problems when compiling the assembly when the 
karaf-maven-plugin tries to "Resolving features". The errors look like the 
following:

Failed to execute goal 
org.apache.karaf.tooling:karaf-maven-plugin:4.0.5:assembly (default-assembly) 
on project asse
mbly: Unable to build assembly: Unable to resolve root: missing requirement 
[root] osgi.identity; osgi.identity=home
r-core-minimal; type=karaf.feature; version=1.2.31.SNAPSHOT; 
filter:="(&(osgi.identity=homer-core-minimal)(type=kara
f.feature)(version>=1.2.31.SNAPSHOT))" [caused by: Unable to resolve 
homer-core-minimal/1.2.31.SNAPSHOT: missing req
uirement [homer-core-minimal/1.2.31.SNAPSHOT] osgi.identity; 
osgi.identity=aries-blueprint; type=karaf.feature] -> [
Help 1]

It seems to be caused by my features linking to features out of the Karaf "standard" or "enterprise" features 
set. It's not only affecting "aries-blueprint" but also "log" or "eventadmin".
I setup a little test-project under [1] with the features file [2] and further 
maven configuration to reproduce the errors.

Did anyone also experience such errors and knows how to solve them?
Can I overcome this issue using the "prerequisite" or "dependency" attribute 
for the linked feature?
Is it ok to link against Karaf features or can/must I assume that the framework 
is properly configured beforehand?

Thanks in advance,
Lukas

[1] https://github.com/roedll/homer-karaf4-assembly-test
[2] 
https://github.com/roedll/homer-karaf4-assembly-test/blob/master/feature/src/main/feature/feature.xml



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf 4.0.x Custom distribution

2016-06-20 Thread James Carman
Here is our custom Karaf build against 4.0.x and it is working. I know we
faced some issues also, but they are resolved now. I do not remember the
details.

https://github.com/savoirtech/aetos/tree/4.0.x?files=1
On Mon, Jun 20, 2016 at 6:48 AM Roedl Lukas  wrote:

> Hi!
>
> I'm currently trying to upgrade our custom distribution to the Karaf 4 way
> of doing things.
> Unfortunately I'm experiencing some problems when compiling the assembly
> when the karaf-maven-plugin tries to "Resolving features". The errors look
> like the following:
>
> Failed to execute goal
> org.apache.karaf.tooling:karaf-maven-plugin:4.0.5:assembly
> (default-assembly) on project asse
> mbly: Unable to build assembly: Unable to resolve root: missing
> requirement [root] osgi.identity; osgi.identity=home
> r-core-minimal; type=karaf.feature; version=1.2.31.SNAPSHOT;
> filter:="(&(osgi.identity=homer-core-minimal)(type=kara
> f.feature)(version>=1.2.31.SNAPSHOT))" [caused by: Unable to resolve
> homer-core-minimal/1.2.31.SNAPSHOT: missing req
> uirement [homer-core-minimal/1.2.31.SNAPSHOT] osgi.identity;
> osgi.identity=aries-blueprint; type=karaf.feature] -> [
> Help 1]
>
> It seems to be caused by my features linking to features out of the Karaf
> "standard" or "enterprise" features set. It's not only affecting
> "aries-blueprint" but also "log" or "eventadmin".
> I setup a little test-project under [1] with the features file [2] and
> further maven configuration to reproduce the errors.
>
> Did anyone also experience such errors and knows how to solve them?
> Can I overcome this issue using the "prerequisite" or "dependency"
> attribute for the linked feature?
> Is it ok to link against Karaf features or can/must I assume that the
> framework is properly configured beforehand?
>
> Thanks in advance,
> Lukas
>
> [1] https://github.com/roedll/homer-karaf4-assembly-test
> [2]
> https://github.com/roedll/homer-karaf4-assembly-test/blob/master/feature/src/main/feature/feature.xml
>