zoukankan      html  css  js  c++  java
  • How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse---转载

    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/

    Cannot change version of project facet Dynamic Web Module to 3.0

    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.

    Eclipse Project facets - Dynamic Web Module

    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.
  • 相关阅读:
    Abp Hangfire 占用 PostgreSql 连接数的另类解决方案
    Git 仓库中文件大小写重命名实践(Windows 环境)
    C# WinForm 文件夹选择控件 folderBrowserDialog 的应用实例
    使用 C# 修改文件创建时间(图片也可修改)
    ABP 在 EntityFramework 中使用扩展批量更新时的异常
    Visual Studio之“生成事件”实践
    博客专家纪念
    深入浅出-应用服务
    如何管理 .NET Core 工具
    深入浅出-可定制仓储设计
  • 原文地址:https://www.cnblogs.com/asingna/p/5616989.html
Copyright © 2011-2022 走看看