Eclipse使用Maven2的一次环境清理记录

1. C:\Users\Administrator\.m2\repository\com\yuanchuangyun\[module,yuanchuangyun-*]相关目录全删除。
2. D:\workspacegit\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\yuanchuangyun-libra-web该目录删掉。
3. tomcat应用启动失败,就是缺少jar包:

<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>
    </classpathentry>
posted @ 2017-06-09 12:02  任国强  阅读(1267)  评论(0编辑  收藏  举报