Details
Description
When I upgraded my Karaf 3.0.3 Assembly to Karaf 4.0.3, I had problems to install libraries to the lib/endorsed directory. After some digging through the code, I found the "libraries" configuration property, which does exactly what I was looking for. It took me even more time to figure out how it works.
It would be nice, if the description of this property is added to the http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html manual.
For those, who have the same problem an example: To install a PostgreSQL driver at lib/endorsed, add the following configuration entry at your karaf-maven-plugin definition:
<libraries>
<library>mvn:org.postgresql/postgresql/9.3-1102-jdbc41;type:=endorsed</library>
</libraries>