Hello! Is it possible, that the value-elements of a map-property, are Objects, not only Strings? I tried the scenario described below, but the value Elements of the MAP are always null...
My context: I have a property with the Type ToolChain: ... /** * @optional * @parameter */ private ToolChain toolChain; ... The toolChain class has a Map with key-elements as String and the Value-Elements should be objects of self defined Type ChainLink: /** * Injected from the POM of the project, if this option is used! */ private Map<String,ChainLink> chainLinks = null; The configuration of the plugin in the pom looks like that: <configuration> <toolChain> <chainLinks> <tool1> <chainLink> <fieldOfChainLink>text</fieldOfChainLink> </chainLink> </tool1> </chainLinks> </toolChain> </configuration> All classes are in the same packages as the mojo! The result is, that the chainLinks-Map is injected, but only the key-elements are filled. The vlaues are always null. thanks, if you have read to this point ;-) Is my approach wrong? Or is this not possible.... dave