Open PhilAndrew opened 8 years ago
I guess it's around here
bject dependencyFormat extends XmlFormat[Dependency] {
def write(d: Dependency) = {
Some(setAttrs(<feature>{d.name}</feature>, Map(
"version" -> d.version.map(_.toString),
"prerequisite" -> Some(d.prerequisite.toString),
"dependency" -> Some(d.dependency.toString)
)))
}
I'll look into this more today
The bundle attributes start
and dependency
are set by default. I need to revisit this and make these more configurable at the time you declare the dependency. I'll investigate this further tonight.
I see: resolution:=mandatory [caused by: Unable to resolve slf4j.api/1.7.5: missing requirement [slf4j.api/1.7.5]
Could you post your full features file for testing?
Cheers.
Currently my features file is working as I changed things around, I'll try to get back the older one a bit later.
Ok. I've had a look, the issue appears to be the scope for which I select the dependencies, they are taken from the "runtime" scope, which is contrary to:
Re: http://karaf.922171.n3.nabble.com/What-version-of-slf4j-is-provided-in-karaf-td4041602.html jbonofre: You can defined the dependency as runtime, like this, the karaf feature plugin won't take it in the generated features.xml.
In the features.xml output it normally generates something like this with start="false" dependency="true", but this seems to make Karaf go crazy and Karaf keeps restarting again and again in a loop.
However if I do this.
Then Karaf starts and gives a meaningful error, which is good and useful, so then my question is how to get rid of the start="false" and dependency="true"?