When I added a prerequiste to the log feature I hit this error [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=log; type=karaf.feature; version=0; filter:="(&(osgi.identity=log)(type=karaf.feature)(version>=0.0.0))" [caused by: Unable to resolve log/4.0.4: missing requirement [log/4.0.4] osgi.identity; osgi.identity=org.apache.karaf.log.core; type=osgi.bundle; version="[4.0.4,4.0.4]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.log.core/4.0.4: missing requirement [org.apache.karaf.log.core/4.0.4] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.ops4j.pax.logging.spi)(version>=1.8.0)(!(version>=2.0.0)))"]] -> [Help 1]
Looking that up I saw ramens post that pointed here https://github.com/rocketraman/test-karaf-verify/blob/master/test-verify/pom.xml I I tried adding the execution but it did not help <executions> <execution> <id>verify</id> <phase>process-resources</phase> <goals> <goal>verify</goal> </goals> <configuration> <javase>1.8</javase> <verifyTransitive>true</verifyTransitive> <descriptors> <descriptor>mvn:org.apache.karaf.features/framework/${karaf.version}/xml/features</descriptor> <descriptor>mvn:${project.groupId}/features/${project.version}/xml/features</descriptor> </descriptors> <features> <feature>aardvarkfelixbundles</feature> </features> <distribution>org.apache.karaf.features:framework</distribution> <framework> <feature>framework</feature> </framework> </configuration> </execution> </executions> On Sun, Feb 28, 2016 at 2:06 PM, Jean-Baptiste Onofré <[email protected]> wrote: > 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 >
