600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > eclipse maven项目 maven build 提示jdk版本不对

eclipse maven项目 maven build 提示jdk版本不对

时间:2020-08-14 15:15:31

相关推荐

eclipse maven项目 maven build 提示jdk版本不对

eclipse打包maven项目提示jdk版本不对,但eclipse版本已经修改jdk版本,可查看maven配置是否正确

maven项目中pom.xml添加

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

本地maven目录下的conf中settings.xml <profiles>中添加

<profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><piler.source>1.8</piler.source><piler.target>1.8</piler.target><pilerVersion>1.8</pilerVersion></properties></profile>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。