新建maven 项目将pom.xml中<packaging>值改为pom报错
2017-03-15 18:07
399 查看
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.hxqc</groupId> <artifactId>architecture</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <name>architecture</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>解决办法:右击项目-->maven-->update project configeration就OK了,不知道什么原因,反正解决了,看到的朋友告诉哈什么原因啊!
相关文章推荐
- eclipse新建maven项目:pom.xml出现web.xml is missing and <failOnMissingWebXml> is set to true解决方案
- 解决maven重新导入项目时,pom.xml中<packaging>war</packaging>错误的方法
- 【maven】maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- 导入Maven项目json-lib有红色感叹号,在pom.xml下中的json-lib下添加<classifier>jdkXX</classifier>即可解决
- Maven项目pom.xml文件报错“web.xml is missing and <failOnMissingWebXml> is set to true”
- maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- maven新建Spring MVC + MyBatis + Oracle的Web项目中pom.xml文件
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- eclipse 创建 maven 项目时遇到web.xml is missing and <failOnMissingWebXml>异常
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- eclipse中,项目有红叉之-Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix
- 关于maven的配置文件pom.xml中<classifier>jdk15</classifier>在gradle中的表达问题
- Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true pom.xml /Ascend line 7 Maven Java EE Configuration Problem
- 新建maven项目pom.xml报错
- Maven搭建项目出现web.xml is missing and <failOnMissingWebXml> is set to true
- eclipse从svn导下项目后pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true
- maven 的pom出现web.xml is missing and <failOnMissingWebXml> is set to true
- maven项目报错--Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Qu
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- 创建Maven web项目时 出现 web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误