如题
试过删除工作区里面的org.maven.ide.eclipse,问题还在,所有pom.xml的代码是正确的,因为其他同事没问题,就我这儿依赖不了
解决方案 »
- 关于java中的Result对象
- struts2 action之间用request 传值 传不过去 怎么办?
- Extjs如何制作K线图啊急用
- 求MapXtreme Java Edition Trial Version 的下载地址?
- 有一个WEB服务器,两个客户同时操作JSP页面,一个删除一条数据,一个正好查询这条数据,报错了,怎么解决啊,急!!
- 问个spring的常识+java基础性问题。。。
- 乱码问题
- BAT批处理如何与JAVA类交互
- 请问如何制作百度蜘蛛用的SiteMap文件呢?还有,在哪里提交这个地址啊?
- 我不想写servelet ,jsp 代码 , 请问,j2ee世界是不是就是以这两者为基础得?
- 在applicationContext.xml配置这事物是什么意思啊??
- 大批量数据文件入库
出现这种情况,应该是子项目不是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
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>兄弟,修改.classpath那招救了我~ 已經折騰了2天了!
非常非常感謝~