attributes - Maven Eclipse插件classpathContainer是否具有属性?

标签 attributes optional-parameters maven-eclipse-plugin

我可以在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/

相关文章:

c# - 是 C#'s attributes better designed than Java' 的注释吗?

c# - .NET DLL 是静态链接还是动态链接?

Clojure:简洁地转发可选值

java - 如何说 eclipse-maven-plugin 从 eclipse 执行与来自 cmd 的 mvn 相同的操作

java - Eclipse maven插件如何添加jar?

java - 使用eclipse插件编写自定义maven命令集

attributes - UML 类图中的关联与属性

jquery - 通过 inkskape 选择 SVG 元素 :label attribute

java - Java中LocalDate属性的编译问题?

c# - 当涉及到带有大量可选参数的函数时,约定是什么?