maven POM中的source和target编译参数是什么意思

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>

source   表示源文件的版本
target   表示编译时候的版本
比如1.5下的代码需要在1.4下编译
 javac -source 1.5 target 1.4

逆天改命!我命由我不由天!
原文地址:https://www.cnblogs.com/huhewei/p/14220159.html