web.xml is missing and is set to true

后端 未结 20 1354
后悔当初
后悔当初 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 18:03

    If you already have web.xml under /src/main/webapp/WEB-INF but you still get error "web.xml is missing and is set to true", you could check if you have included /src/main/webapp in your project source.

    Here are the steps you can follow:

    1. You can check this by right clicking your project, and open its Properties dialogue, and then "Deployment Assembly", where you can add Folder /src/main/webapp. Save the setting, and then,
    2. Go to Eclipse menu Project -> Clean... and clean the project, and the error should go away.

    (I verified this with Eclipse Mars)

提交回复
热议问题