Pipeline parameter as list from Maven pom

Hi,
We want to add a parameter to our pipeline.
That parameter will be a list of modules that should come from a Maven pom.xml.
Any idea ?
Thanks,