Hi I have recently started using maven. I came across errors that were caused by different java version specified in different parts of my projects.
So far I am aware that I can specify the compiler version in project-properties Java compiler, project-properties project facets and in pom.xml
Why do I have to mention the java version I am using in these different places?
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>