String []类型的Maven参数的语法是什么

And*_*Dev 10 arrays syntax parameter-passing maven

例如,Maven编译器插件中的annotationProcessors参数需要String []作为参数.

Maven中字符串数组的语法是什么?

小智 11

我的头顶阵列是这样处理的:

<annotationProcessors>
    <annotationProcessor>com.example.AP1</annotationProcessor>
    <annotationProcessor>com.example.AP2</annotationProcessor>
</annotationProcessors>
Run Code Online (Sandbox Code Playgroud)

(apache maven-users邮件列表上的旧帖子支持此功能).