错误如图提示: 解决办法: 右键项目---properties---deployment assembly -----add---选择java build path entries添加 maven dependencies即可。