简体   繁体   English

在Maven上安装测试用例运行成功,但会给出一些警告

[英]On maven install test cases running successful but gives some warnings

When I run maven install on my project. 当我在项目上运行maven安装时。 It gives the following warnings. 它给出以下警告。 Maven install is success but how should I eliminate these warnings. Maven安装成功,但是我应该如何消除这些警告。 What dependencies should be added in order to eliminate these warnings? 为了消除这些警告,应该添加什么依存关系?

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并删除重复的依赖项。

open pom.xml and remove the duplicate dependencies. 打开pom.xml并删除重复的依赖项。 See for the dependency conflicts and remove the overlapping dependencies. 请参阅参考以了解依赖性冲突并删除重叠的依赖性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM