maven项目引入jar包

在maven项目中,如果不小心把build path中maven依赖包干掉了,不知道怎么添加回来,可以找到.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>

posted @ 2017-08-23 00:00  七仔大神  阅读(217)  评论(0)    收藏  举报