在Eclipse Version中安装Maven项目:Mars.2(4.5.2)

时间:2017-03-13 07:19:20

标签: eclipse maven spring-boot junit4

我想在Eclipse中安装此示例https://github.com/danielolszewski/blog。 我下载了repo,在我的工作区dir中解压缩,运行mvn eclipse:eclipse并从Eclipse Import - >现有的Maven项目 - >

一切似乎都没问题,但Eclipse无法识别Junit类。 而不是看Run As - > Junit Test,我看到Run As -> Configurations

enter image description here

1 个答案:

答案 0 :(得分:0)

在我看来,你没有使用正确的观点。你必须使用视图“Project Explorer”?它应该以标签形式提供。如果没有,您可以使用菜单“Window> Show View”添加它。