I built my jdk-11 (11.0.12) version from sources. I checked jdk on previous projects in Intellj, everything compiles and started without error,
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<encoding>${sourceEncoding}</encoding>
</configuration>
</plugin>
but when I used maven-compiler-plugin,and tried command: package war-file he told me
Maven 3.3.1+ requires JDK 1.7+. Please set appropriate JDK
Other jdk (example corretto-11) working without problem. What the problem?
My java -version (I built JDK myself)
openjdk version "11.0.12-internal" 2021-07-20 OpenJDK Runtime Environment (fastdebug build 11.0.12-internal+0-adhoc.Eugene.jdk11u-c354f2ee0de8)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.12-internal+0-adhoc.Eugene.jdk11u-c354f2ee0de8, mixed mode