首页 > 其他 > 详细

maven 使用 问题记录

时间:2014-07-25 00:11:14      阅读:384      评论:0      收藏:0      [点我收藏+]

Java compiler level does not match the version of the installed Java project facet

Assuming that you are using the m2e plugin in Eclipse, you‘ll need to specify the source and targetversions as 1.6 for maven-compiler-plugin. m2e uses these values to determine the project‘s Java compiler level. A snippet of the POM is shown below:

<build>
  <plugins>
    <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
    </plugin>
  </plugins>
</build>

Alternatively, you can specify the maven.compiler.source and maven.compiler.targetproperties with values of 1.6, that happen to be the equivalent:

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

 http://stackoverflow.com/questions/7715260/java-compiler-level-does-not-match-the-version-of-the-installed-java-project-fac 

maven 使用 问题记录,布布扣,bubuko.com

maven 使用 问题记录

原文:http://my.oschina.net/cedo/blog/294437

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!