Maven问题

1.//An internal error occurred during: “Updating Maven Project”. Unsupported IClasspathEntry kind=4

I just went to Properties -> Java Build Path -> Libraries and removed the blue entries starting with "M2_REPO". After that, I could use Maven -> Update Project again

参考:http://stackoverflow.com/questions/15065093/an-internal-error-occurred-during-updating-maven-project-unsupported-iclassp

2.//运行maven命令时,no POM

先将工作目录切换到项目下(项目下必须有pom.xml),再运行命令.

3.测试pom.xml是否正确

运行maven clean test.

4.//Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext,但实际上Libraries中依赖存在(Maven Dependencises中)

在项目右键属性Deployment Assembly-Add-Java Build Path Entries,添加Maven Dependencise项

5.//项目属性没有Deployment Assembly

在项目的.project文件,<natures>节中添加"<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>",并刷新项目

你可能感兴趣的:(Maven问题)