Dynamic Web Module 3.0 — 3.1

前端 未结 9 1905
谎友^
谎友^ 2020-12-07 13:47

I have a mavenized codebased configured Spring 3.2.4 web app. When I build the app with Maven/pom.xml first I got an error that web.xml is missing. first I tried to create

9条回答
  •  半阙折子戏
    2020-12-07 13:53

    I had similar troubles in eclipse and the only way to fix it for me was to

    • Remove the web module
    • Apply
    • Change the module version
    • Add the module
    • Configure (Further configuration available link at the bottom of the dialog)
    • Apply

    Just make sure you configure the web module before applying it as by default it will look for your web files in /WebContent/ and this is not what Maven project structure should be.

    EDIT:

    Here is a second way in case nothing else helps

    • Exit eclipse, go to your project in the file system, then to .settings folder.
    • Open the org.eclipse.wst.common.project.facet.core.xml , make backup, and remove the web module entry.
    • You can also modify the web module version there, but again, no guarantees.

提交回复
热议问题