idea 将一个普通项目转换为maven项目 1.在工程文件的根目录下,新建文件pom.xml,并编辑好pom.xml文件。 2.在pom.xml 文件上,右键 Add as Maven Project即可。 相关文章: