背景:在 idea 中引入 eclipse 的项目,这个项目在 eclipse 中使用了 link source 引入公共模块,分享如何在 idea 中进行配置。
1、在 idea 中下载 eclipse 插件
file -> settings -> Plugins -> 点击 Browse Repositories -> 搜索 Eclipser ,选中,在右边 Install 。安装完成后,重启 idea 。
2、导入 eclipse 项目
file -> new -> projects from existing sources -> 选择自己要导入的 eclipse 项目 然后 ok -> 选择 import project from external model ,下方选择 eclipse ,next -> next -> 选择要导入的项目 -> 然后一直next,最后 finish 。
3、配置 JDK
file -> project structure 或者选择右边的小图标