0
Good evening! I am trying to deploy a REST API on Heroku, but I come across the following error: [] [ERROR] Failed to execute goal org.apache.Maven.plugins: Maven-Compiler-plugin: 3.8.1: compile (default -compile) in cartorio project: Fatal error when compiling: invalid target version: 11 -> [Help 1]
No pom xml is like this:
4.0.0 org.springframework.boot spring-boot-Starter-Parent 2.4.2 com.register cartorio 0.0.1-SNAPSHOT cartorio Demonstration project for Spring Boot <java.version> 11 </java.version> org.springframework.boot spring-boot-Starter-data-jpa org.springworkspring-boot.boot-Starter-jersey org.springframework.boot spring-boot-Starter-web
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.7.0</version>
</dependency>
org.springframework.boot
spring-boot-Maven-plugin