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 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>