修改项目.project文件,确保有maven2Builder和maven2Nature2个标签:

 

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>projectName</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

然后update Dependencies

相关文章:

  • 2021-05-08
  • 2021-10-10
  • 2022-12-23
  • 2022-01-09
  • 2021-11-20
  • 2021-09-26
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-12-13
  • 2021-08-29
  • 2021-07-18
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2021-05-05
相关资源
相似解决方案