<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>      
            。。。。
        </plugins>
    </build>

在pom.xml中没有声明的加入这个plugin时,是按照1.3来进行编译的。我们肯定不想用这么低的JDK版本

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-10-04
  • 2021-11-18
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案