Maven部署Web项目报错webxml attribute is required
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project com.alpha.webapp: 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
在pom中插入如下即可解决
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <warSourceDirectory>src/main/webapp</warSourceDirectory> </configuration> </plugin>
相关推荐
maven搭建web项目hello world
基于maven创建web项目 基础环境 Myeclipse2013 Tomcat8.0 Jdk1.8 apache-maven-3.3.9 环境配置
idea使用maven创建web项目详细教程
下面小编就为大家分享一篇解决maven启动Spring项目报错的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
使用maven创建web项目,独立管理jar包资源,方便简单高效
ssm框架结合maven整合web项目源码,
使用maven构件web项目,部署tomcat
eclipse导入maven项目报错解决办法,找了好多网上的都零零碎碎的,希望以后遇到会有所帮助.
主要介绍了关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Intellj构建和部署Maven Web项目详解
一步一步用Maven创建web项目,经过测试,与目前我做的大项目一致
NULL 博文链接:https://yansxjl.iteye.com/blog/2352594
不习惯于maven项目开发,想使用eclipse的普通web项目。想借鉴别人的maven项目,但是自己使用的却不熟悉maven的原理等等,但是需要懂一点maven的目录架构。
空白的,经过单元测试的,mavenWeb项目
资源名称:maven创建web项目教程 中文WORD版内容简介: Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具。 Maven 除了以程序构建能力为特色之外,还提供高级项目...
maven web项目 Demo
本文档记录了本人用eclipse搭建maven dynamic web3.0的详细过程,包含了搭建maven项目,把maven项目转换为web项目,Dynamic web Module 2.3转换为3.0等内容
使用springmvc、hibernate、maven开发的web实例项目。
使用maven构件web项目
使用Eclipse使用Maven构建web项目视频教程,不包含框架内容