gpt4 book ai didi

java - 在maven安装测试用例运行成功但给出一些警告

转载 作者:行者123 更新时间:2023-12-02 04:24:08 24 4
gpt4 key购买 nike

当我在我的项目上运行 maven install 时。它给出以下警告。 Maven 安装成功,但我应该如何消除这些警告。应添加哪些依赖项才能消除这些警告?

T E S T S
Running com.test1
log4j:WARN Continuable parsing error 1 and column 83
log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".
log4j:WARN Continuable parsing error 1 and column 83
log4j:WARN Document is invalid: no grammar found.
log4j:ERROR No appender named [CONSOLE] could be found.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.79 sec
Running com.test2
log4j:WARN Continuable parsing error 1 and column 83
log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".
log4j:WARN Continuable parsing error 1 and column 83
log4j:WARN Document is invalid: no grammar found.
log4j:ERROR No appender named [CONSOLE] could be found.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.504 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

最佳答案

打开 pom.xml 并删除重复的依赖项。查看依赖项冲突并删除重叠的依赖项。

关于java - 在maven安装测试用例运行成功但给出一些警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32400307/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com