這是什麼意思,它是如何被刪除(重新格式化以獲得更好的可讀性)?「支持的源版本」RELEASE_5「來自注釋處理器...」是什麼意思?
[INFO] Compiling 30 source files to ...\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
warning: Supported source version 'RELEASE_5' from annotation processor
'org.sonatype.guice.bean.scanners.index.QualifiedIndexAPT6'
less than -source '1.6'
warning: No processor claimed any of these annotations:
org.junit.Ignore,org.junit.Test,org.junit.BeforeClass
發生這種情況時org.sonatype.sisu:sisu-inject-plexus:2.1.1
是項目依賴項之一。
厄內斯特,請你解釋一下「什麼都沒有正在看他們「的意思? – yegor256
這個輸出來自'apt',我想象的是Annotation Processing Tool,它的目的是在你的代碼中找到所有的註釋,並使它們可用於插件「註釋處理器」。該工具只是警告您,註冊處理器沒有註冊一些註釋。這完全不是一件壞事 - 如果你目前沒有運行JUnit,那麼沒有人應該關心那些JUnit註釋。 –
明白了,但是這條消息是由'javac'發送的(由Apache Maven 3.0.3 maven-compiler-plugin 2.4運行)。你知道該怎麼做才能刪除警告。忽略它不是我的選擇。 – yegor256