安装sonarQube后,项目的maven dependences却消失不见了,迅速的反映是去项目右键-properties-deployment-Deployment Assembly下,点击add-Java Build Path Entries下添加maven dependences,但是却没有,网上找了一个办法,使用了,可行,随记录一下
找到项目的.classpath文件:
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<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"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
没有上面的内容,复制下面的内容,添加进.classpath文件中,刷新项目或clean项目,maven dependences出现!