1.配置好pom.xml 安装maven(前提)
2.如果是web 项目
.classpath文件下添加
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
.project 文件添加
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
3.如果是maven项目 去除上面的相关信息即可
并且配置相应的输出文件路径
4.最后myeclipse刷新项目即可;