maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-wa
2015-09-25 08:47
691 查看
在使用maven构建web项目的时候,需要检查src-main-webapp下是否有web-info的目录,如果没有要手动的添加,并在web-info下添加web.xml文件,否则在执行maven-install命令的时候会出现报错
maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war)
如果webapp目录下有web-info路径以及web.xml 则需要检查pom.xml文件中,是否有maven-war-plugin插件配置,在<build>节点中增加:<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <webResources> <resource> <directory>WebContent</directory> </resource> </webResources> </configuration> </plugin> </plugins>
相关文章推荐
- mysql failed to open file
- Async and Await 异步和等待
- RAID技术介绍和总结
- mongoDB启动报错 ERROR: child process failed, exited with error number
- http://blog.csdn.net/fufeihappy/article/details/6060763 你知道linux每个文件夹下都是什么吗?
- Factorial Trailing Zeroes
- HDU 3394 Railway(点双连通分量与桥)
- AIDL相关的解释远程service和client处理
- rotate图片旋转 http://blog.csdn.net/lonelyroamer/article/details/8252533
- MethodInvokingJobDetailFactoryBean的并发问题
- blog is waiting for you
- Could not obtain transaction-synchronized Session for current thread
- Linux sync命令的作用 http://blog.csdn.net/holandstone/article/details/7356865
- HDU 2476 String painter(记忆化搜索, DP)
- copypng emitted errors but did not return a nonzero exit code to indicate failure
- 超级块与索引节点 http://blog.csdn.net/ilsas/article/details/5627348
- TIME_WAIT状态的必要性
- POJ 1273 Drainage Ditches(最大流模板)
- MailMessage From 及Sender的區別
- mycat AIO改写成NIO 性能从80000tps增加到100000tps