There is no schema defined for this pom.xml.的解决方法

发表于: java/j2ee | 作者: darkmi | 日期: 2012/01/31 08:00
标签: maven, pom.xml
字号:

打开pom.xml文件时收到如下提示:

There is no schema defined for this pom.xml. Code completion will not work without a schema defined.

将改为:

<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">

即可。

参考链接:
http://code.google.com/p/springside/issues/detail?id=40

pom.xml文件参考:
http://maven.apache.org/pom.html

切换主题切换主题
返回顶部