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>",并刷新项目

转载于:https://my.oschina.net/meilihao/blog/201274

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值