maven web项目pom.xml文件头部报错
2017-03-20 14:06
399 查看
创建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文件中加入:
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编译插件的错误
相关文章推荐
- 【maven】maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- Maven构建SSM框架JavaWeb项目pom.xml文件整理
- maven新建Spring MVC + MyBatis + Oracle的Web项目中pom.xml文件
- 【maven】pom.xml文件没错,但是项目有小红叉,Problems中可以看到错误:“Dynamic Web Module 3.0 requires Java 1.6 or newer.”
- maven创建web项目-pom文件提示web.xml is missing and is set to true
- springMVC+Mybatis的maven-web项目的pom.xml文件内容
- maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- maven项目的pom.xml文件出现红色错误提示:ArtifactTransferException: Failure to transfer
- 在打包maven项目时出现找不到web.xml文件错误
- Maven pom.xml 配置说明: 打jar包不包括指定资源文件和.class xml,配置不跑testCase,建pom父子项目
- Idear 创建maven web项目后在pom.xml里面添加依赖,但项目里没有jar包
- Maven学习总结(十一)——Maven项目对象模型pom.xml文件详解
- 新建的maven project 的web项目,web.xml文件必须重写
- Maven学习总结(十一)——Maven项目对象模型pom.xml文件详解
- 根据已有项目jar文件生成maven的pom.xml
- Maven项目pom.xml文件详解
- Maven项目中pom.xml文件报错以及项目编译错误
- Maven学习总结(十一)——Maven项目对象模型pom.xml文件详解
- 关于项目既要使用ant脚本又要使用maven pom.xml文件的问题
- MAVEN项目的配置文件pom.xml元素的含义