《分面项目问题(Java版本不匹配)》错误信息 [英] "Faceted Project Problem (Java Version Mismatch)" error message
问题描述
Eclipse 的问题"选项卡显示此错误:
<块引用>描述:Java 编译器级别与安装的 Java 项目方面的版本不匹配.
资源:分组
路径:[空白]
地点:未知
类型:分面项目问题(Java 版本不匹配)
我的 pom.xml
有这个设置:
<插件><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><配置><来源>1.6</来源><目标>1.6</目标></配置></插件></插件>
还有哪些设置可能不匹配?
您是否检查了 项目属性 ->Project Facets
面板?(来自:
Eclipse's "problems" tab is displaying this error:
Description: Java compiler level does not match the version of the installed Java project facet.
Resource: groupping
Path: [blank]
Location: Unknown
Type: Faceted Project Problem (Java Version Mismatch)
My pom.xml
has this setting:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
Where else could the settings be mismatched?
Did you check your Project Properties -> Project Facets
panel? (From that post)
A WTP project is composed of multiple units of functionality (known as facets).
The Java facet version needs to always match the java compiler compliance level.
The best way to change java level is to use the Project Facets properties panel as that will update both places at the same time.
The "
Project->Preferences->Project Facets
" stores its configuration in this file, "org.eclipse.wst.common.project.facet.core.xml
", under the ".settings
" directory.The content might look like this
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="WebSphere Application Server v6.1"/>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.java" version="5.0"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="jsf.ibm" version="7.0"/>
<installed facet="jsf.base" version="7.0"/>
<installed facet="web.jstl" version="1.1"/>
</faceted-project>
Check also your Java compliance level:
这篇关于《分面项目问题(Java版本不匹配)》错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!