著作権:ソースを明記してください再現。https://blog.csdn.net/u010720408/article/details/91049212
Mavenのきれいなパッケージには珍しい失敗しました:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project spring-batch-quartz: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[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
ソリューションをお試しください:
まず:ウィンドウ - > preference-> Javaベース>インストール済みのJREはJDKへの追加、オリジナルのJREを削除ではなく、
新しい異常の出現:
The specified JRE installation does not exist
インストールするのJREで、見て/ JDK7ライン上のJDKし、/ jreディレクトリが、後に検証されていません。
最後に、記事が言うMavenを参照し、Javaコンパイルのデフォルト設定を日食分離されているので、構成がビューのMavenを構築します:
参照、選択された代替JRE、ワークスペースのデフォルトJREを超える、ラインに切り替え