将eclipse的maven项目导入到intellij idea中

最近项目中需要用到idea,需要将原来的eclipse项目进行转移。捣鼓了半天终于成功了,在这里和大家分享下,希望对大家有所帮助,如有错误,欢迎指正。

idea的确是一款很智能的开发工具,真的是爱不释手啊,额,偏题了,下面进入正题。

先给大家看看我们原来eclipse的项目的目录结构:

1.删除其他文件只留下src文件和pom.xml文件 ,如图:

2.打开idea,选择file-new-project from existing sources,如图:

3.然后选择你的项目路径,如图:

4.接下来就next-next-finsh。等待idea自动导入依赖和项目结构,然后就大功告成了




ps :我是保留了 scr, tourinfor(装图片的),  pom.xml这三个文件夹保留后 直接import maven 项目的 选项就成功了,然后配置好tomcat 就可运行 maven的javaweb项目

GitHub 加速计划 / ma / maven
36
0
下载
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:17 天前 )
2cb48d09 Get rid of multiple screens of deprecation messages, that are with us since last commons-cli update. 11 小时前
65d213b7 Bumps [actions/cache](https://github.com/actions/cache) from 4.2.4 to 4.3.0. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/0400d5f644dc74513175e3cd8d07132dd4860809...0057852bfaa89a56745cba8c7296529d2fc39830) --- updated-dependencies: - dependency-name: actions/cache dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 17 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐