【问题】缺少web.xml Failed to execute goal org.apache.maven.plugins:maven-war-plugin::war (default-war)

    技术2022-07-11  70

     

    问题:

    Failed to execute goal org.apache.maven.plugins:maven-war-plugin::war (default-war) on project change-interface: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin::war failed: basedir C:\gw\workspace\ieng\src\main\webapp does not exist

     

    解决方案:

    1.增加对应目录

    2.创建web.xml

    <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0"> </web-app>

     

     

     

     

    Processed: 0.015, SQL: 9