Maven項目在Project Facets裏面修改Dynamic web module爲2.5的時候就會出現Cannot change version of project facet Dynamic web module to 2.5,如圖:html
首先打開Navigator,如圖:web
修改項目的設置,在Navigator下打開項目.settings目錄下org.eclipse.wst.common.component,如圖:(將1.5改爲1.6)eclipse
打 開org.eclipse.wst.common.project.facet.core.xml,把 <installed facet="jst.web" version="3.0"/>改爲 <installed facet="jst.web" version="2.5"/>,如圖:spa
而後,再看項目的properties,完成修改!component
反之亦然
xml