changfangxing

eclipse导入maven项目,但无法编译的问题

同事今天从git 导入项目到eclipse 后,发现项目所依赖的包找不到依赖,初步判定是maven的依赖没有导入项目中。

最终发现,在项目中的.classpath 文件加入以下代码即可解决问题。

<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"></classpathentry>

 

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2021-04-13
  • 2021-10-19
  • 2022-01-15
  • 2021-07-15
  • 2021-05-06
  • 2021-08-03
  • 2021-11-29
猜你喜欢
  • 2021-11-29
  • 2021-11-29
  • 2021-10-09
  • 2021-11-29
  • 2021-11-21
  • 2021-12-01
  • 2021-07-14
相关资源
相似解决方案