mvn clean install, не удалось выполнить цель org.apache.maven.plugins: maven-compiler-plugin: 3.1: compile - PullRequest
0 голосов
/ 25 сентября 2019

Я хочу подключить свой проект maven к Jenkins, но я получаю следующую ошибку:

https://imgur.com/tnRwSW1

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project AnimalShelter: Fatal error compiling: invalid target release: 12 -> [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

Поэтому я изменил источник и цель на 11 или 10, ноэто тоже не работает.То же самое происходит, когда я пытаюсь выполнить следующую команду: «mvn clean install».Я думаю, что-то не так в моих настройках, но я не знаю, что.

  <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>12</source>
                    <target>12</target>
                </configuration>
            </plugin>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...