web.xml is missing and is set to true

后端 未结 20 1335
后悔当初
后悔当初 2020-11-30 17:35

Consider:

When I create a simple Maven project in Eclipse I am getting this error:

web.xml is missing and

相关标签:
20条回答
  • 2020-11-30 17:53

    Right click on the project, go to Maven -> Update Project... , then check the Force Update of Snapshots/Releases , then click Ok. It's done!

    0 讨论(0)
  • 2020-11-30 17:54

    If you use Spring Tool Suite, option for Generate Deployment Descriptor Stub is moved under Java EE Tools, so you:

    1. Right click on your project
    2. Select Java EE Tools
    3. Select Generate Deployment Descriptor Stub option

    This will create web.xml file inside src/main/webapp/WEB-INF/ folder, and of course remove error from Maven's pom.xml file.

    0 讨论(0)
  • 2020-11-30 17:56

    Do this:

    Go and right click on Deployment Descriptor and click Generate Deployment Descriptor Stub.

    0 讨论(0)
  • 2020-11-30 17:57

    Create WEB-INF folder in src/webapp, and include web.xml page inside the WEB-INF folder then

    0 讨论(0)
  • 2020-11-30 17:58

    Remove files from -web/.setting&-admin/.setting

    1

    0 讨论(0)
  • 2020-11-30 17:59

    My project had nothing to do with war, but the same error. I had to remove project from eclipse, delete all eclipse files from the project folder and reimport maven project.

    0 讨论(0)
提交回复
热议问题