maven 编译插件指定jdk版本的两种方式

第一种方式:

        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>

第二种方式:

  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
  </properties> 

猜你喜欢

转载自www.cnblogs.com/BaiLaowu/p/9417114.html