当方、初心者です。
mvn spring-boot:run
任意のディレクトリにて上記を実行すると
以下のエラーが出てしまいます。
エラー出力
$ mvn spring-boot:run [INFO] Scanning for projects... [INFO] [INFO] -----------------------< jp.co.e_cyber:air2020 >------------------------ [INFO] Building air2020 v0.0.1 [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] >>> spring-boot-maven-plugin:1.4.6.RELEASE:run (default-cli) > test-compile @ air2020 >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ air2020 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] Copying 4347 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ air2020 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 914 source files to C:\Users\kawata\Desktop\web\air2020_core\target\classes WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.131 s [INFO] Finished at: 2019-09-20T13:09:13+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project air2020: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [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/MojoExecutionException
mvn clean packageの実行結果
[INFO] Scanning for projects... [INFO] [INFO] -----------------------< jp.co.e_cyber:air2020 >------------------------ [INFO] Building air2020 v0.0.1 [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ air2020 --- [INFO] Deleting C:\Users\kawata\Desktop\web\air2020_core\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ air2020 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] Copying 4347 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ air2020 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 914 source files to C:\Users\kawata\Desktop\web\air2020_core\target\classes WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 39.170 s [INFO] Finished at: 2019-09-20T17:56:59+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project air2020: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [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/MojoExecutionException
バージョン
javac 12.0.2 Java version: 12.0.2, vendor: Oracle Corporation, runtime: C:\Java\jdk-12.0.2 Default locale: ja_JP, platform encoding: MS932 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
こちら見ても何かいけないのかさっぱりわからず、
皆様のご教授のほどお願いします。
以上、よろしくお願いします。
mvn clean packageを実行したときの結果を質問内容に追記をお願いします。
mvn clean packageの実行結果を追記いたしました。
コンパイルができていないようなので、もう一度以下のコマンドを実行して結果を確認してください。
mvn -e -X claen package > result.txt
出力される情報量が多いのでresult.txtというファイルの出力するようにしています。
コマンド実行後にこのresult.txtをテキストエディタで開き、エラーの発生個所を確認して質問内容に追記をお願いします。
(テキスト量の関係で全文は貼れないと思いますので関係のありそうなところを抜粋してください)
回答1件
あなたの回答
tips
プレビュー