Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Some test cases need the logger. The uv3 default logger is no logger - and slf4j uses its "NOP" logger. To make these tests work like they do in v2, add a test dependency on the slf4j-jdk14 adapter.
One project had this accidentally added but not as a test scope (it used the default compile scope). This worked, except it showed up a (probable) bug in Maven / Invoker, when running the jcasgen-maven-plugin integration tests - the slfj4-api would go missing from the jcasgen maven plugin's environment. Fixing the other dependency in uimaj-cpe for slfj4-jdk14 to "test" made the invoker plugin no longer delete the slf4j-api jar from its execution classpath. (Documented here for historical reasons, and because it took most of a day to debug this!)