# Fatal error compiling: invalid target release: 11

**URL:** <https://community.codecov.com/t/fatal-error-compiling-invalid-target-release-11/1413>\
**Category:** Bug Fixes\
**Tags:** java\
**Created:** [May 14, 2020, 10:13am UTC](https://community.codecov.com/t/fatal-error-compiling-invalid-target-release-11/1413 "2020-05-14T10:13:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MieskeB](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@MieskeB](https://community.codecov.com/u/MieskeB)\
**Post date:** [May 14, 2020, 10:13am UTC](https://community.codecov.com/t/fatal-error-compiling-invalid-target-release-11/1413/1 "2020-05-14T10:13:23Z")

</div>

### Description

I’ve just installed my first repository and it immediately gives this error. Removing the following lines does fix the issue, but I don’t want them removed:  
  
\<java.version\>11\</java.version\>  
\<maven.compiler.source\>11\</maven.compiler.source\>  
\<maven.compiler.target\>11\</maven.compiler.target\>

### Repository

Private

### Steps to Reproduce

1. Create Spring Boot Maven project
2. Add the code above
3. Add the .travis.yml file
4. Add the following code in the file:  
language: java  
script: “mvn cobertura:cobertura”  
after\_success:
  - bash \<(curl -s [https://codecov.io/bash](https://codecov.io/bash)) -t 12345678-1234-1234-1234-123456789012

5. Run: `mvn cobertura:cobertura`

**Expected behavior:** Build success

**Actual behavior:** Build failure (fatal error compiling: invalid target release: 11)

**Flakiness?** Always

### Versions

Java JDK 11  
Windows 10  
Spring Boot

### Additional Information

It gives this article as possible solution: [https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException](https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException) but that only says that it’s a plugin error

When I run the program normally, everything works. Only when I run this specific command it doesn’t.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 15, 2020, 11:39pm UTC](https://community.codecov.com/t/fatal-error-compiling-invalid-target-release-11/1413/2 "2020-05-15T23:39:30Z")

</div>

Hi @MieskeB, can you provide the `codecov.yml`, Codecov output, and relevant commit SHAs?
