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

执行Maven Install打包的时候,出现以下错误信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pro-test: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

产生该错误的原因是“webapp”目录下缺少“WEB-INF”目录,缺少“WEB-INF/web.xml”文件。

时间: 2024-10-28 22:05:13

Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in的相关文章

MAVEN: Error assembling WAR: webxml attribute is required

环境:MyEclipse2015 CI+Maven3 使用Maven创建一个Web project(创建方法参考<如何用Maven创建web项目(具体步骤)>),执行maven install时出现错误. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] --------------------------------------

SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required

Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都是jar,因此要修改默认的打包方式jar为war 2.修改web model的依赖(dependency) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo

008-SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required

一.Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都是jar,因此要修改默认的打包方式jar为war 2.修改web model的依赖(dependency) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b

Failed to execute goal.....webxml attribute is required...

maven在打包项目的时候报错 Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project taotao-manager-web: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) mav

[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as &#39;true&#39;)

WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')   在使用Maven 编译项目的时候会出现  [WARNING] Warning: selected war files include a

DVWA--登录页面错误问题 469 | | PHP Fatal error: Uncaught exception &#39;PDOException&#39; with message &#39;could not find driver&#39; in C:\web\DVWA\dvwa\includes\dvwaPage.inc.php:469

1 // MySQL PDO Prepared Statements (for impossible levels) 2 $db = new PDO('mysql:host=' . $_DVWA[ 'db_server' ].';dbname=' . $_DVWA[ 'db_database' ].';charset=utf8', $_DVWA[ 'db_user' ], $_DVWA[ 'db_password' ]); 3 $db->setAttribute(PDO::ATTR_ERRMOD

错误/异常:org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;sessionFactory&#39; defined in ServletContext resource [/WEB-INF/classes/beans_common.xml]...的解决方法

1.异常/错误视图 错误/异常描述:sessionFactory 初始化失败. 说明:我用的是SSH框架.JDK-1.8:Tomcat-7.0 我用到的jar包: 2.解决方法 我 出现在这个问题的原因是:jar包的问题(应该是冲突),我删除了hibernate-core-4.1.12.Final.jar这个jar包,问题就解决了. 其他原因: 1.保证jar包没有问题的情况下,还出现这个问题,那么就是你的Spring配置文件配置错了,请仔细检查,改回来即可. 2.保证jar包没有问题,Spri

configure: error: GMP version &gt;= 4.3.2 required

配置mpc-1.0.1时提示此错误 查找了很多镜像站点,现在能找到的最低版本就是:mpc-1.0.1 wget ftp://gnu.mirror.iweb.com/mpc/mpc-1.0.1.tar.gz 遇到这个问题就去下载:gmp-4.3.2或者是更高的版本 wget ftp://gnu.mirror.iweb.com/gmp/gmp-4.3.2.tar.gz 注意: 我刚开始下载的最新版本:gmp-6.0.0a,但是在安装mpfr的时候有错误,安装不了,后来回忆好像也可能是我操作有错误.

maven错误:Error assembling JAR: A zip file cannot include itself

出错情景:maven项目clear后直接install 出错原因:maven执行install后先编译第一个module然后开始打包,编译第二个module继续打包(这个时候文件夹中已经包含了这个文件,所以出现这个错误) 解决方案:先clear complie install,在complie后会先形成所有的的配置文件和.class文件,在执行install的时候不会重新编译文件,而是会使用当前的文件进行打包 这错误找到解决方案用了半天,花了2小时才找到出错的原因,我也是醉了