解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
来源:互联网 发布:mac卸载双系统 编辑:程序博客网 时间:2024/06/05 11:28
前面已经聊了创建maven web工程,但是问题来了,创建maven web工程之后会出现如下的错误,在pom.xml文件头部 有以下的错误
Cannot detect Web Project version. Please specify version of Web Project through <version> configuration property of war plugin. E.g.: <plugin> <artifactId>maven- war-plugin</artifactId> <configuration> <version>3.0</version> </configuration> </plugin>
解决方法如下:
在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编译插件的错误
4 2
- 解决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
- CSDN博客积分规则和获取积分方法
- struct2文件上传
- CF:375B - Maximum Submatrix 2 不太像DP(sort的升序快速方法)
- Mac 上Intellij13 新建项目的一些问题
- 大话数据结构十八:图的存储结构之邻接矩阵
- 解决maven web项目Cannot detect Web Project version. Please specify version of Web Project through...的错误
- Unity3d连接SQLServer数据库
- DataView 数据筛选
- UVa 10098 - Generating Fast
- ollydbg使用技巧
- WPF-数据绑定:日期时间格式
- LeetCode Partition List
- 链接错误——无法解析的外部符号 ConvertStringToBST
- DWR