zoukankan      html  css  js  c++  java
  • Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web)

    eclipse 打包maven打war包项目的时候提示:

    Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

    pom.xml中加入以下依赖,让maven打包项目的时候找eclipse默认的WebContent目录下web.xml

    <plugins>  
        <plugin>  
            <groupId>org.apache.maven.plugins</groupId>  
            <artifactId>maven-war-plugin</artifactId>  
            <version>2.1.1</version>  
            <configuration>  
                <webResources>  
                    <resource>                      
                    <!-- this is relative to the pom.xml directory -->  
                    <directory>WebContent</directory>  
                    </resource>  
                </webResources>  
            </configuration>  
        </plugin>  
    </plugins>  
    
    
  • 相关阅读:
    Docker
    Docker
    VIM
    Python
    Python
    VIM
    Python
    其他
    Java
    Java
  • 原文地址:https://www.cnblogs.com/zoro-zero/p/14512502.html
Copyright © 2011-2022 走看看