如题
试过删除工作区里面的org.maven.ide.eclipse,问题还在,所有pom.xml的代码是正确的,因为其他同事没问题,就我这儿依赖不了

解决方案 »

  1.   

    项目右键-->Maven-->Update Dependencies(或Update Project Configuration)试试
      

  2.   

    终于都把问题解决了!!!
    出现这种情况,应该是子项目不是WTP的项目,只要将子项目中的环境修改一下就好了
    修改.project文件
    在<buildSpec>标签中添加
    <buildCommand>
    <name>org.eclipse.wst.common.project.facet.core.builder</name>
    <arguments>
    </arguments>
    </buildCommand><buildCommand>
    <name>org.eclipse.wst.validation.validationbuilder</name>
    <arguments>
    </arguments>
    </buildCommand>在<natures>标签中添加
    <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
    <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>修改.classpath
    添加<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
    <attributes>
    <attribute name="org.eclipse.jst.component.nondependency" value=""/>
    </attributes>
    </classpathentry>点击子项目右键preferences--->Deployment Assembly
    Add--->Folder Mapping---->src-->main-->java
    Add--->Folder Mapping---->src-->main-->resources
      

  3.   


    <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
    <attributes>
    <attribute name="org.eclipse.jst.component.nondependency" value=""/>
    </attributes>
    </classpathentry>兄弟,修改.classpath那招救了我~  已經折騰了2天了!
    非常非常感謝~