相关疑难解决方法(0)

使用地图的地图作为 Maven 插件参数

是否可以使用地图的地图作为 Maven 插件参数?,例如

@Parameter
private Map<String, Map<String, String>> converters;
Run Code Online (Sandbox Code Playgroud)

然后像这样使用它

<converters>
  <json>
     <indent>true</indent>
     <strict>true</strict>
  </json>
  <yaml>
      <stripComments>false</stripComments>
  </yaml>
<converters>
Run Code Online (Sandbox Code Playgroud)

如果我像这样使用它,converters则仅包含键jsonyaml以 null 作为值。

我知道可以将复杂的对象作为值,但是是否也可以像本示例中那样使用映射作为变量元素值?

maven-plugin maven

4
推荐指数
1
解决办法
2375
查看次数

标签 统计

maven ×1

maven-plugin ×1