I often stumble over the documentation of typed values for Maven plugin parameter. Take for example excludeRoots of the maven-pmd-plugin. It is a java.io.File[]
. This could mean that it accepts
<excludeRoots>root1,root2</excludeRoots>
or
<excludeRoots>
<excludeRoot>root1</excludeRoot/>
<excludeRoot>root2</excludeRoot/>
</excludeRoots>
or maybe even
<excludeRoots>
<excludeRoot path="root1"/>
<excludeRoot path="root2"/>
</excludeRoots>
Is there a specification how non-typed character input in XML is interpreted as Java types for the plugins. Or is this up to the plugin? I'm asking about the general behaviour, not about the plugin in the example, I don't care how it works in this question.
What would be the difference to a java.util.List
parameter in this example?