Accessing plugin configuration xml attributes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Accessing plugin configuration xml attributes

Leandro Nunes
Hello,

Currently one can use

@org.apache.maven.plugins.annotations.Parameter
private LinkedHashMap<String, String> keyValues = new LinkedHashMap<>();

to read a plugin configuration that looks like

<configuration>
    <keyValues>
        <key1>value1</key1>
        <key2>value2</key2>
    </keyValues>
</configuration>

My question is if it is possible to somehow read a configuration that looks
like this

<configuration>

<keyValues>

<key1 myAttribute="attribute 1">value1</key1>

<key2 myAttribute="attribute 2">value2</key2>

</keyValues>

</configuration>

From my investigation this does not seem to be possible at the moment. Can
you confirm?

I would also like to know if there's any plans to make this available
somehow?

Regards,
Leandro Nunes