Complementary to this question, how to determine actual java version used in mvn compile
?
I am compiling FasterXML/jackson-databind as follows, but can't be sure of the java version:
$ git clone https://github.com/FasterXML/jackson-databind.git
$ cd jackson-databind
$ mvn compile
$ javap -verbose ./target/classes/com/fasterxml/jackson/databind/PropertyNamingStrategy.class | grep "major"
major version: 52
So according to this post, the java version is 1.8
.
But when I grep the pom.xml
I don't see that:
$ grep -wn "source" pom.xml
245: <id>add-test-source</id>
248: <goal>add-test-source</goal>
252: <source>src/test-jdk14/java</source>
265: <source>14</source>
I only see java 14 (?) What am I missing?