pom.xml文件中有如下警告:
There is no schema defined for this pom.xml. Code completion will not work without a schema defined.
解决方法:
将pom.xml文件中的根标签
<project>
替换为:
<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">
即可。
关于这个问题的一个讨论:
https://issues.sonatype.org/browse/MNGECLIPSE-1770
