我可以在pom中设置classpathContainer参数,以配置eclipse:eclipse命令的Maven Eclipse插件。如果我设置:
<classpathContainers>
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29</classpathContainer>
</classpathContainers>
我进入 .class
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
但是我需要:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
如何将属性添加到classpathContainer?
提前致谢。
最佳答案
使用2.9版之前的Maven Eclipse插件无法为类路径容器生成自定义服装。
您可以投票给issue MECLIPSE-743 in the Maven Eclipse Plugin issue tracker以便在下一发行版中具有此功能。
关于attributes - Maven Eclipse插件classpathContainer是否具有属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12280257/