Как исправить «Ошибка компиляции: для входной строки:« \ 1.8 »-> [Help 1]» в IntelliJ IDEA - PullRequest
1 голос
/ 07 июня 2019

Я скачал IntelliJ IDEA и попытался написать плагин.Однако, как только я попытался скомпилировать код, сборка не удалась, и выскочило сообщение об ошибке:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project RandomTP: Execution default-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile failed: For input string: "\1.8" -> [Help 1]

Я не видел это сообщение раньше, и так как я не смог найти похожий вопрос в GoogleЯ решил спросить здесь.

Проблема возникла, когда я получил ошибку

Fatal error compiling: invalid target release: 1.8

.Я следовал за этим вопросом и следовал принятому ответу для этого вопроса тоже .Я изменил SDK Project в разделе «Структуры проекта» на 12 (версия Java «12.0.1»).Под Maven Runner я изменил JRE для использования внутреннего JRE.Но как только я перекомпилировал, я столкнулся с ошибкой ввода строки выше.

Вот необработанный вывод IntelliJ:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project RandomTP: Execution default-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile failed: For input string: "\1.8" -> [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/PluginExecutionException

Process finished with exit code 1

Есть идеи?

...