I’m using a Mojo that has a Map<String, String> as a setting. According to
http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Maps
that should be configured like:
<theMap>
<key1>value1</key1>
</theMap>
but my properties are namespace -> package mappings for xsd code generation. So that would be:
<packageNames>
<http://mydomain/myservice>my.service.package.name</http://mydomain/myservice>
</packageNames>
which isn’t even valid xml. So is there any way to escape the values or another way to map settings to a Mojo’s map?
Use combination of mapping list and complex objects.
In your case configuration would look like:
Once you collect the List, validate that all
urisare unique, by possibly assigning it to Map internally. Also, document mojo, that it expects uniqueuris.