[Latest eclipse version neon] web.xml is missing and <failOnMissingWebXml> is set to true

[Problem phenomenon]:

      The latest eclipse version neon  encountered the following error message when learning maven modular construction project:

          web.xml is missing and <failOnMissingWebXml> is set to true

【solution】:

     The solution of the web project : Right-click the project -> Java EE Tools -> Generate Deployment Descriptor Stub. Then the system will create a web.xml file under the src/main/webapp/WEB_INF file. Error resolved!

     Non-web project solution: Then there is another solution, which is to configure failOnMissingWebXml in the pom file. The specific configuration is as follows:

 

<build>

  <plugins>

   <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-war-plugin</artifactId>

    <version>2.6</version>

    <configuration>

     <failOnMissingWebXml> false </failOnMissingWebXml>

    </configuration>

   </plugin>

  </plugins>

 </build>

 

      

 

 

 

 

 

 

 

 

 

 

Donor sharer

          I didn't like programming before, but now I am an IT fan obsessed with programming. I would like to share some things I have sorted out and optimized here, hoping to help IT fans, with joy and sweat, and at the same time I also hope that everyone can support it. Of course, if you have money to support a money field (support Alipay and WeChat donations, join the it data center buckle group), but have no money to support a personal field, with your support, we will be more motivated and do better, thank you Ladies and gentlemen.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449005&siteId=291194637
Recommended