You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: I need to run unit tests inside the karaf container. I am able to generate my manifest and DS files before the test phase and want to include target/classes using the include assembly protocol; That bundle needs to be loaded during boot, and that cannot be specified using the current Karaf options. It important that I run my tests before installing my artifact locally, as other Karaf runtimes on my machine are watching the local repo and would inadvertently install an untested bundle.
Solution: I recently implemented a Karaf option that allows installing bundles into the system directory while also adding an entry to startup.properties. Basically, you can use the standard karaf feature, install pax-url-assembly et al during boot, and then wrap target/classes.
S created PAXEXAM-800
Problem:
I need to run unit tests inside the karaf container. I am able to generate my manifest and DS files before the test phase and want to include target/classes using the include assembly protocol; That bundle needs to be loaded during boot, and that cannot be specified using the current Karaf options. It important that I run my tests before installing my artifact locally, as other Karaf runtimes on my machine are watching the local repo and would inadvertently install an untested bundle.
Solution:
I recently implemented a Karaf option that allows installing bundles into the system directory while also adding an entry to startup.properties. Basically, you can use the standard karaf feature, install pax-url-assembly et al during boot, and then wrap target/classes.
Documentation:
Here is the new option in action
In doing so, this now works in the Karaf forked container.
There is also an overloaded method that allows specifying maven coordinates and a local file. This allows the test code to use a local lib directory.
Votes: 0, Watches: 1
The text was updated successfully, but these errors were encountered: