项目发布,突然,j控制台报了好多错,检查,发现原来lib没弄过去,就手动添加,但是这样怎么能不断适应开发节奏啊?
这问题,困扰了我一上午,后来百度,发现
只需在工程中.classpath中找到
classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes><attribute name="maven.pomderived" value="true"/>
</attributes>
添加 <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>为下一个
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>
重新运行发布即可。