すべてがJava 8に設定されていても、Mavenは以下を教えています。目標org.apache.maven.pluginsを実行できませんでした:maven-compiler-plugin:3.1:プロジェクトのコンパイル(デフォルトコンパイル)
File -> Project Structure -> Modules
[編集設定 - > Mavenの - >ビルド - >ファイル名を指定して実行] [2]
[デフォルトのプロジェクト構造] [3]
すべての言語レベルに設定されている8
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.730 s
[INFO] Finished at: 2017-02-06T20:29:55+01:00
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project kingdoms: Compilation failure
[ERROR] /C:/Users/Marius/Desktop/IntelliJ projects/Kingdoms/src/main/java/me/expdev/kingdoms/files/JsonConfig.java:[24,54] diamond operator is not supported in -source 1.6
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Process finished with exit code 1
ご協力いただければ幸いです。私は周りにグーグルを試みたが、誰もこのエラーを持っていない、そのためにスタックオーバーフローに頼っていない。
注:私はIntelliJ Ultimate Editionを使用していますが、これは関連性があります。