问题:log4j-slf4j-impl cannot be present with log4j-to-slf4j
问题详细描述:安装supermap-iobjectsjava-11.1.1-win64-all-Bin,并把Bin目录下的 com.supermap.data.cloudlicense.jar 包打进本地maven仓库,在项目中使用(新建一个springboot2.3.12.RELEASE项目)。启动项目遇到下方错误:
错误详情:
cloudlicense-11.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class
logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class
Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j
注,由于StaticLoggerBinder在cloudlicense-11.1.1.jar包内部,无法通过maven exclusion移除。