Hi
Your feature should just depends to the log feature: thanks to that the
resolver will find the expected packages for the verify.
Regards JB
Sent from my Samsung device
-------- Original message --------
From: David Daniel <[email protected]>
Date: 28/02/2016 18:01 (GMT+01:00)
To: [email protected]
Subject: Issue building with karaf-maven-plugin
I am having an issue building with karaf-maven-plugin 4.0.4. I never had it
working with a previous version and I am just trying to start setting it up so
it is probably something simple I am doing wrong but I could use a little help.
I getting the following error when I build
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.4:assembly (default-assembly)
on project server-installer: Unable to build assembly: Unable to resolve root:
missing requirement [root] osgi.identity; osgi.identity=aardvarkfelixbundles;
type=karaf.feature; version=0;
filter:="(&(osgi.identity=aardvarkfelixbundles)(type=karaf.feature)(version>=0.0.0))"
[caused by: Unable to resolve aardvarkfelixbundles/1.0.0: missing requirement
[aardvarkfelixbundles/1.0.0] osgi.identity;
osgi.identity=org.apache.felix.metatype; type=osgi.bundle;
version="[1.1.2,1.1.2]"; resolution:=mandatory [caused by: Unable to resolve
org.apache.felix.metatype/1.1.2: missing requirement
[org.apache.felix.metatype/1.1.2] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))"]]
-> [Help 1]
because of my feature
<features name="aardvark"
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0
http://karaf.apache.org/xmlns/features/v1.3.0">
<feature name="aardvarkfelixbundles" description="Felix Requirements For
AARDVARK" version="1.0.0">
<bundle>mvn:javax.servlet/javax.servlet-api/3.1.0</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.http.api/3.0.0</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.metatype/1.1.2</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.coordinator/1.0.2</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.eventadmin/1.4.4</bundle>
<bundle>mvn:org.apache.felix/org.apache.felix.dependencymanager/4.1.1</bundle>
</feature>
I would expect it to find org.osgi.service.log in compendium. How should I be
telling the feature that the required bundle is already installed. is there
something like augment.
Thanks for any help,
David