1、右键点击项目,选择Configure --> Convert to Maven project。
2、修改.classpath,加入以下段落
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
3、在pom.xml中加入需要的包
eclipse中转成MAVEN项目
猜你喜欢
转载自iceher0.iteye.com/blog/2245750
今日推荐
周排行