If you encounter a maven error on your pom file saying web.xml is missing
来源:互联网 发布:wii 知乎 编辑:程序博客网 时间:2024/06/01 18:56
If you encounter a maven error on your pom file saying web.xml is missing
if you encounter a maven error on your pom file saying web.xml is missing
and <failOnMissingWebXml> is set to true, then it means it is expecting a web.xml file in your Maven project
because it is a web application, as we have chosen packaging as war. However, nowadays in web applications
web.xml file is optional. Add the following configuration in your pom.xml within <project> tag to fix the error:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins></build>
阅读全文
1 1
- If you encounter a maven error on your pom file saying web.xml is missing
- maven 的pom.xml 配置异常web.xml is missing and <failOnMissingWebXml> is set to true
- Maven中pom.xml报错:web.xml is missing and <failOnMissingWebXml> is set to true
- maven 的pom出现web.xml is missing and <failOnMissingWebXml> is set to true
- maven项目pom文件报web.xml is missing and <failOnMissingWebXml> is set to true
- eclipse maven项目pom报错web.xml is missing and <failOnMissingWebXml> is set to true
- maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- emulator: ERROR:This AVD's configuration is missing a kernel file!&HAX is not installed on this mach
- 在eclipse平台上,通过maven构建web项目时,pom.xml报错web.xml is missing and <failOnMissingWebXml> is set to true
- pom.xml报错:web.xml is missing and <failOnMissingWebXml> is set to true
- pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- pom.xml报错:web.xml is missing and <failOnMissingWebXml> is set to true
- pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- Maven Compilation Error:No compiler is provided...you are running on a JRE rather than a JDK
- pom文件报错web.xml is missing and <failOnMissingWebXml> is set to true
- 创建maven工程报web.xml is missing错误
- WARNING: `makeinfo' is missing on your system.
- makeinfo is missing on your system
- jsp数据库中文乱码处理
- sdut-离散题目14
- 选购 显微镜
- iTerm--比Terminal(终端)更好用的命令行工具
- Linux网络编程【二】:UDP socket套接字详解
- If you encounter a maven error on your pom file saying web.xml is missing
- Java基础-异常处理、常用类
- ThreadPoolExecutor使用详解
- leetcode 139. Word Break
- 实战
- Number of permutation with K inversions
- Executors提供的四种线程池和自定义线程池
- JS高级---闭包(一看就懂)
- ZopCommerce Asp.Net Core 1.x版教程-第0篇 项目开发环境部署