<build>
        <finalName>myweb</finalName>
        <plugins>
            <!--JDK版本 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                    <showWarnings>true</showWarnings>
                </configuration>
            </plugin>
        </plugins>
</build>

 

save之后右击项目--》Maven--》Update Project

如果目录依旧还是:

maven pom.xml设置jdk编译版本为1.8

请手动导入本机的jdk.library:

maven pom.xml设置jdk编译版本为1.8

maven pom.xml设置jdk编译版本为1.8

 

 maven pom.xml设置jdk编译版本为1.8

 

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-07-20
  • 2021-08-28
  • 2021-10-17
  • 2022-12-23
  • 2021-06-13
  • 2021-07-19
猜你喜欢
  • 2021-07-13
  • 2021-11-30
  • 2021-11-18
  • 2021-11-18
  • 2021-08-25
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案