【发布时间】:2014-04-25 18:49:53
【问题描述】:
运行 maven Eclipse 插件后,我的 .classpath 包含所有依赖项,如下所示:
<classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.6/commons-lang-2.6-sources.jar"/>
有没有办法让它只包含 maven 类路径容器,像这样?
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
【问题讨论】:
标签: eclipse maven maven-eclipse-plugin