首页 > Web开发 > 详细

How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse---转载

时间:2016-06-25 22:55:27      阅读:407      评论:0      收藏:0      [点我收藏+]

How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse

原文:http://crunchify.com/how-to-fix-cannot-change-version-of-project-facet-dynamic-web-module-to-3-0-error-in-eclipse/

技术分享

Today while converting Dynamic Web Project to Maven project I got below Error:

 

What steps I’ve performed to fix this?

In order to fix this first thing I did is to change Project Facets settings.

  1. Right click on Project in Eclipse
  2. Click on Properties
  3. Click on Project Facets Tab
  4. Change value from 3.1 to 3.0 for Dynamic Web Module as mentioned in below image.

技术分享

Did it work? Nope.

But unfortunately I was not able to apply setting as Apply and OK button was grayed out with error msg:Cannot change version of project facet Dynamic Web Module to 3.0.

I was literally stuck at this point.

Then I’ve looked at my pom.xml file. I’ve converted Dynamic Web Project to Maven Project by following steps in article.

By default Eclipse adds above <build> block to pom.xml file and that is THE problem for this error: Cannot change version of project facet Dynamic Web Module to 3.0.

How to fix?

Step-1

Just replace <build> block with this one.

 

Step-2

  • Right Click on Project
  • Click Maven
  • Click Update Project

or

  • use Quick Fix from error console
Have a suggestion or anything to add to this article? Chime in and share as a comment.

How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse---转载

原文:http://www.cnblogs.com/asingna/p/5616989.html

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