0
當我在我的項目上運行maven安裝。它給出了以下警告。 Maven的安裝是成功的,但我應該如何消除這些警告。爲了消除這些警告,應該添加哪些依賴關係。如果有人能指導它會有幫助。在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
您將需要發佈log4j.xml文件,因爲這些警告似乎與其相關。 –