eclipse遇到的问题及解决办法

eclipse找不到插件的解决方法-------对links方式加载插件失效。

解决方法

在%eclispe_dir%/configration/config.ini文件,有一项org.eclipse.update.reconcile=false配置,改成true后重新进入eclipse,一切ok!!

在这里插入图片描述

另外附上一些网上通用解决方法,方便以后查找:
1.删除整个目录/eclipse/configuration/org.eclipse.update/,重启eclipse

2.在启动eclipse时带上 -clean参数 如:d:\eclipse\eclipse.exe -clean

3.在/configuration/config.ini文件中加入一行 osgi.checkconfiguration=true 这样它会寻找并安装插件,找到后可以把那行再注释掉,这样以后每次启动就不会因寻找插件而显得慢了。

Eclipse中的项目没有Maven Dependencies 这个library的解决办法

遇到了公司项目导入后,没有Maven Dependencies这个东西儿显示一大堆的jar在项目树结构中,降低开发效率和使用好感!
Maven Dependencies

解决办法

就maven update project然后构建路径里面去掉那些多余的jar,只留jre和Maven Dependencies
在这里插入图片描述

原理是

.classpath文件

Maven Dependencies 这个library在.classpath文件中是这么标记的:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
	<attributes>
		<attribute name="maven.pomderived" value="true"/>
	</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
	<attributes>
		<attribute name="maven.pomderived" value="true"/>
	 </attributes>
</classpathentry>

把这段添加进去.classpath文件,放在标签下,比如这样:


<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" output="target/classes" path="src/main/java">
		<attributes>
			<attribute name="optional" value="true"/>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="output" path="target/classes"/>
</classpath>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值