Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Wrong java version in maven-compiler-plugin #71

Description

@volodya-lombrozo

We expect that maven during compilation will use 8 version of Java:

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.10.1</version>
        <configuration combine.self="override">
          <source>8</source>
          <target>8</target>
        </configuration>
      </plugin>

But at the same time we use features from Java 11:

Files.readString(path);
...
Path.of(...);

I don't clearly understand why maven even build the project, but in my IDEA a see tons of warning and errors. Can we increase the version of Java for maven-compiler-plugin, at least to make it more clear?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions