maven项目移除Maven Dependencies后如何再添加进去

这下可好,整个项目报错了

 

解决方法:

对比了有Maven Dependencies和没有Maven Dependencies的项目

在workspace下的项目目录下的.classpath文件中,粘贴这么一段代码:

maven项目移除Maven Dependencies后如何再添加进去

 

<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
         <attributes>
             <attribute name="maven.pomderived" value="true"/>
             <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
         </attributes>
</classpathentry>

 

如下图位置:

maven项目移除Maven Dependencies后如何再添加进去

然后关闭MyEcplise,重启开启,问题解决:

maven项目移除Maven Dependencies后如何再添加进去

 

相关文章:

  • 2021-11-07
  • 2021-07-23
  • 2021-05-14
  • 2021-07-26
  • 2021-05-02
  • 2021-09-07
  • 2022-12-23
  • 2021-04-12
猜你喜欢
  • 2021-03-31
  • 2021-11-20
  • 2021-10-13
  • 2021-10-08
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案