scribe icon indicating copy to clipboard operation
scribe copied to clipboard

SBT test didn't load the log4j.properties in resource folder

Open aiguo-ebay opened this issue 8 months ago • 1 comments

How to use log4j.properties for sbt test? Is there a way to Moduload it for all test cases or single test case?

14:43:05  Picked up JAVA_TOOL_OPTIONS: -Duser.timezone=GMT-7 -Dfile.encoding=UTF-8
14:52:27  Fully-qualified classname does not match jar entry:
14:52:27    jar entry: META-INF/versions/11/module-info.class
14:52:27    class name: module-info.class
14:52:27  Omitting META-INF/versions/11/module-info.class.
14:52:27  Fully-qualified classname does not match jar entry:
14:52:27    jar entry: META-INF/versions/11/module-info.class
14:52:27    class name: module-info.class
...
14:52:27  Omitting META-INF/versions/11/shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class.
14:52:27  Fully-qualified classname does not match jar entry:
14:52:27    jar entry: META-INF/versions/11/shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastIntegerMath.class
14:52:27    class name: shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastIntegerMath.class
14:52:27  Omitting META-INF/versions/11/shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastIntegerMath.class.
14:52:27  Fully-qualified classname does not match jar entry:
14:52:27    jar entry: META-INF/versions/17/shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class
14:52:27    class name: shaded/parquet/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class

aiguo-ebay avatar Apr 18 '25 22:04 aiguo-ebay

It's been a while, but I believe just having the scribe-migration module in the project should automatically load the log4j.properties file. However, it is recommended to migrate your log4j.properties files over to Scribe configuration.

darkfrog26 avatar Apr 19 '25 00:04 darkfrog26