Maven doesn't use Java 7

☆樱花仙子☆ 提交于 2019-11-29 20:45:08

This may not work in maven 2.2.1, but with Maven 3.0.4, simply adding the two properties to the pom's properties enables Java 7 for me:

<properties>
  <maven.compiler.source>1.7</maven.compiler.source>
  <maven.compiler.target>1.7</maven.compiler.target>
</properties>
demesne

perfectly nice explanation on the compatibility issue of jdk 1.7 with maven 2.2.1 given by Mark Peters Maven "could not parse error message" (Java 7 + Maven 2)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!