maven项目手动添加依赖 如果是非jar包依赖,需要将将依赖打成jar包:点击idea右侧maven生命周期install。 将打好的jar包放入repository当中,(如果原本依赖就在repository当中,打好的jar就在repository)