Quantcast
Channel: Active questions tagged tekton - Stack Overflow
Viewing all articles
Browse latest Browse all 53

Tekton - maven task - cannot compile with JDK 17

$
0
0

Building a project with the Tekton standard "maven" Task works fine for JDK8 and JDK11.

When changing to another JDK17 project, I get this message:

Failed to execute goalorg.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile(default-compile) on project quotes: Fatal error compiling: error:invalid target release: 17 -> [Help 1]

The default maven plugin version was 3.10.1.

How can I build with the modern JDK17 in Tekton task Maven?

In the pom.xml I have all settings (and even more then strictly necessary) to ask maven to compile with JDK17:

<properties><java.version>17</java.version><maven.compiler.target>17</maven.compiler.target><maven.compiler.source>17</maven.compiler.source></properties>

Optionally I even added the superfluous statements:

<build><plugins>        ...<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version>    <configuration><source>17</source><target>17</target></configuration></plugin></plugins></build>

Viewing all articles
Browse latest Browse all 53

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>