eclipse通过maven打war包的时候,发生如下错误提示
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web
找到如下文,说的很清楚
http://blog.csdn.net/vking_wang/article/details/8731824
【问题描述】:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project XFireTest: 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
【问题解决】:
<build>
<finalName>simple-webapp</finalName>
<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>
</build>
【问题分析】:
我的项目时eclipse中的dynamic web project,并且提供Maven支持,其中在web项目package为war。
Web的maven项目默认的webroot是在src\main\webapp。如果在此目录下找不到web.xml就抛出以上的异常。
分享到:
相关推荐
Web应用就是包括了一系列Servlet 、JSP 、 HTML等相关文件的集合,它需要成功部署到 服务器中才能运行和被访问。 根据Servlet的规范,Web应用中的所有文件必须按照特定的目录结构进行组织,才能顺利地部署到不同...
It starts with creating the software, compiling and assembling the software, loading it into memory, and running it. It then briefly explains how executing instructions results in operations in digit...
HtmlUnit 版本2.48.0 / 2021年3月20日 :red_heart: 主页 消息 下载 对于maven,您将添加: ... <artifactId>htmlunit</artifactId> <version>2.48.0</version> ...HtmlUnit是“用于Java程序的GUI更少的浏览器”。...
Assembling the SIMATIC NET FC FO LC Plug - Assembly Instructions[手册]pdf,
sam = sce.tl.sam(adata, inplace=True) #adata is your AnnData object 要求 numpy scipy pandas scikit-learn umap-learn numba anndata 可选依赖项 交互式GUI(Jupyter笔记本) plotly==4.0.0 ...
Java Maven计算器Web应用 Java计算器Web应用程序,由Maven构建,CI / CD由Jenkins构建。 1.通过Maven手动构建,测试和部署 1.1启动Nexus(可选) ...[INFO] Assembling webapp [java-maven-calculator-web-app]
This new edition of Understanding Oracle ... Specific attention is given in the book to the thought process involved in choosing and assembling APEX components and features to deliver a specific result.
我们需要编译出运行在ARM平台上的代码,所使用的交叉编译器为 arm-linux-gcc 在此之前首先介绍下编译器的工作过程,在...1. 预处理(Pre-Processing) 2. 编译(Compiling) 3. 汇编(Assembling) 4. 链接(Linking)
3.1.5 Image assembling. 6 3.1.6 Segmentation. 7 3.1.7 Binary image labeling. 8 3.1.8 Feature extraction and single cell detection. 8 3.1.9 Discussion. 9 3.2 Stem cell colony growth computation. 10 ...
Whether you’re a professional technician, a small business owner trying to save money, or a home PC enthusiast, this is the only PC hardware book you need! NEW IN THIS EDITION The newest processors,...
Memory Scan: Fixed a rare situation that could cause an error Memory Scan: Simple values now works with groupscan Memory Scan Lua: Scanfiles now also get deleted if the memory scan object is freed ...
For the best SHENZHEN I/O experience, we highly recommend printing this manual and assembling a binder that you can refer to as you play. To assemble the binder, simply follow these instructions: • ...
Specific attention is given in the book to the thought process involved in choosing and assembling APEX components and features to deliver a specific result. Understanding Oracle APEX 5 Application ...
大会Assem-VC:通过组合现代语音合成技术实现逼真的语音转换,朴胜元,@ @ ,SNU 论文:arXiv: ://arxiv.org/abs/2104.00931(提交给INTERSPEECH 2021) 音频样本: :
Setting Up Slicers (but Only if You Have Excel 2010 or Later) Chanaing pivot Table 1avout Changing Pivot lable Layout Ac0lng a alL Adding Conditional Formatting Troubleshooting Pivot Tables summary ...
NetBeans IDE is consistently first in supporting the latest Java technologies for developing desktop, web, enterprise, and mobile applications. <br>NetBeans™ IDE Field Guide <br>provides an ...
Software Factories - Assembling Applications with Patterns, Models, Frameworks, and Tools (2004) - LiB.part2.rar
The Division Instructions: DIV, IDIV, and AAD 6.6 - Logical, Shift, Rotate and Bit Instructions 6.6.1 - The Logical Instructions: AND, OR, XOR, and NOT 6.6.2 - The Shift Instructions: SHL/...
Assembly is performed automatically using the yasm assembler and linking is performed with ld or gcc. Debugging operates by transparently sending commands into the gdb debugger while automatically ...