解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
来源:互联网 发布:dns的端口号是 编辑:程序博客网 时间:2024/05/21 20:27
创建maven web工程之后会出现如下的错误,在pom.xml文件头部 有以下的错误
Cannot detect Web Project version. Please specify version of Web Project through configuration property of war plugin. E.g.: maven- war-plugin 3.0
解决方法如下:
在pom.xml文件中加入:
<build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <version>3.0</version> </configuration> </plugin> </plugins> <finalName>webserver</finalName> </build>
那是因为项目未指定maven war编译插件的错误
转载出处:http://blog.csdn.net/enson16855/article/details/19704355
阅读全文
0 0
- 解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
- 解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
- 解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
- Cannot detect Web Project version. Please specify version of Web Project through Maven project prope
- maven web工程提示Cannot detect Web Project version. Please specify version of Web Project through Maven
- 解决Cannot detect Web Project version
- Maven项目导入问题:Cannot detect Web Project version 解决方法
- Myeclipse 创建Maven项目:Cannot detect Web Project version
- 解决maven web项目Cannot change version of project facet Dynamic Web Module错误
- maven系列-maven报错Cannot detect Web Project version
- 解决maven项目上有红叉,Cannot change version of project facet Dynamic web module to 2.5
- MAVEN项目解决Cannot change version of project facet Dynamic web module to 3.0
- maven项目的Cannot change version of project facet Dynamic web module to 2.5
- eclipse 创建maven web错误Cannot change version of project facet Dynamic Web Module to 3.1.
- Maven web项目报异常:Cannot change version of project facet Dynamic Web Module to 3.0.
- maven---Cannot change version of project facet Dynamic web
- 解决Maven项目中的错误:Cannot change version of project ...
- 解决Cannot change version of project facet Dynamic Web M
- 深度和广度优先算法
- pycharm2017.1.1专业版激活
- 主存储器
- 使用Spring的声明式事务----AOP方式
- SSM框架定时器
- 解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
- Web实时通信Socket.IO兼容浏览器版本IE7&IE8&IE9&IE10
- 阿里巴巴编程题-兔子繁殖
- MySQL操作命令
- 第六篇:IP协议、ARP协议、RARP协议
- 每天一个linux命令(3):pwd命令
- iOS 画饼图
- 主成分分析法
- 第七篇:ICMP协议、Ping、Traceroute