maven-install报错:webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update
来源:互联网 发布:2015药典 凡例平行数据 编辑:程序博客网 时间:2024/05/17 01:19
maven-install报错:
- [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
原因:
maven的web项目默认的webroot是在src\main\webapp。如果在此目录下找不到web.xml就抛出以上的异常。
解决办法:需要在pom.xml中的增加<webResources>配置,如下:
<build><plugins><!-- 配置web.xml的路径,maven的web项目默认的webroot是在src\main\webapp --><plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <webXml>webapp\WEB-INF\web.xml</webXml> </configuration> </plugin> </plugins></build>
0 0
- maven-install报错:webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update
- webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- 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 (or pre-existing WEB-INF/web.xml
- Maven打包web项目报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if
- Maven打包web项目报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if
- IDEA Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executin
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml
- Maven部署Web项目报错webxml attribute is required
- 【Maven】Maven部署Web项目报错webxml attribute is required
- [Java][Maven]Maven部署Web项目报错webxml attribute is required
- [Java][Maven]Maven部署Web项目报错webxml attribute is required
- [Java][Maven]Maven部署Web项目报错webxml attribute is required
- [Java][Maven]Maven部署Web项目报错webxml attribute is required
- MAVEN: Error assembling WAR: webxml attribute is required
- Error assembling WAR: webxml attribute is required
- [svn]Java项目带有图标的意思
- java版本切换
- 使用 GROUP BY WITH ROLLUP 改善统计性能
- Android surfaceview双缓冲机制和闪屏的解决方法内附代码详解
- git命令总结
- maven-install报错:webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update
- No resource found that matches the given name '@style/Widget.AppCompat.Base.ActionBar'.
- Xamarin.iOS-UIImagePickerController调用相机和获取相册列表【控件篇】
- ZCMU—1053
- Android-Java抓取网络图片上传七牛云全纪录
- iOS-Core-Animation-Advanced-Techniques-(一)图层树
- 目标检测,windows 下跑 SSD: Single Shot MultiBox Detector
- collectionview 边距 collectionViewCell圆角
- VB ListView控件各种操作详解