Alexander Ushakov <alexander.ushakov.em...@gmail.com> wrote:

>         <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-compiler-plugin</artifactId>
>            <version>3.1</version>
>            <configuration>
>               <source>1.17</source>
>               <target>1.17</target>
>            </configuration>
>         </plugin>
> 
> (…)
> 
> results with error
> 
> ```
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
> (default-compile) on project streams.examples: Fatal error compiling:
> error: invalid target release: 1.17 -> [Help 1]
> ```
> 
> Java and Maven has been installed through SdkMan. Java 17.
> 
> Can someone, please, suggest the solution?

If you want to use Java 17, you should specify 17 instead of 1.17. Only 
releases up to and including Java 8 are specified as 1.x.

Nils.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to