[ https://jira.codehaus.org/browse/MNG-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=338177#comment-338177 ]
Stuart McCulloch commented on MNG-4171: --------------------------------------- FYI this was fixed a few years back under https://issues.sonatype.org/browse/SISU-61 and is available in Maven 3.0.3 onwards. > The XML resulting from a property of java.util.Properties is a lot more > clumsy than that for Map > ------------------------------------------------------------------------------------------------ > > Key: MNG-4171 > URL: https://jira.codehaus.org/browse/MNG-4171 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Plugin API > Affects Versions: 2.1.0 > Reporter: Benson Margulies > Fix For: 3.2 > > > Map parameters have this convenient XML mapping > <myPropName> > <key>value</key> > </myPropName> > The corresponding syntax for Properties is much more verbose: > <myPropName> > <property><name>x</name><value>y</value</property> > </myPropName> > This seems like punishment to the plugin user. In my case, I am internally > targetting an API that uses Properties, so it was really convenient to just > declare at that type. However, the XML is so clumsy that I'm now going to go > change it to a map and manually populate a Properties object. I wish that > there was some @ to allow me to declare the variable as Properties and get > the Map syntax. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira