【问题标题】:What is the syntax for a Maven parameter of type String[]String[] 类型的 Maven 参数的语法是什么
【发布时间】:2012-12-16 17:32:16
【问题描述】:

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

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

【问题讨论】:

    标签: maven syntax parameter-passing arrays


    【解决方案1】:

    我的头顶数组是这样处理的:

    <annotationProcessors>
        <annotationProcessor>com.example.AP1</annotationProcessor>
        <annotationProcessor>com.example.AP2</annotationProcessor>
    </annotationProcessors>
    

    (apache maven-users 邮件列表上的一个旧的post 支持这一点)。

    【讨论】:

    • 这与类型 List 有何不同?而且,关键是外部 xml 元素的单数形式,或者它可以是任何东西,这真的很重要吗?
    猜你喜欢
    • 2015-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-14
    相关资源
    最近更新 更多