![](/img/trans.png)
[英]Maven surefire plugin 2.22.2 build fails for Junit 5 test cases with errror Unsupported class file major version 56 in spring boot
[英]Maven build for surefire-plugin 2.22.2
Hello i'm using apache maven and junit 5.6.2 an di have this error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-cli) on project optimus:沒有執行任何測試!
(設置 -DfailIfNoTests=false 以忽略此錯誤。) -> 幫助 1要查看錯誤的完整堆棧跟蹤,請使用 -e 開關重新運行 Maven。 使用 -X 開關重新運行 Maven 以啟用完整的調試日志記錄。 有關錯誤和可能的解決方案的更多信息,請閱讀以下文章: 幫助 1
當我嘗試清理和構建時,我沒有問題,但只有在我運行測試時。
問題解決了,我將 maven 的版本更改為 2.5.2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.