Maven工程显示小红叉,项目编译打包运行都可以以

来源:互联网 发布:传奇版本火灵db数据 编辑:程序博客网 时间:2024/06/03 17:34

Windows -show view -Prolems 

在Prolems中找到项目的error信息

如果是报:

Description ResourcePathLocationType
Project configuration is not up-to-date with pom.xml. Run project configuration updatetomcat-redis-sessionline 1Maven Configuration Problem

解决方法:

则项目右键-maven -update project configuration... 


如果是找不到 .MF文件 则 run as  Mven  clean 


如果是Description ResourcePath LocationType Java compiler level does not match the version of the installed Java project facet.jettyplugin UnknownFaceted Project Problem (Java Version Mismatch)

在项目上右键Properties-》Project Facets,在打开的Project Facets页面中的Java下拉列表中,选择相应版本。


0 0