I have implemented plugin system using Spring. I have info.xml in each plugin which is spring xml configuration file with beans.

I have jar with all plugins (lot of info.xml) files in classpath. Structure inside jar is /plugins/name/info.xml and /plugins/name/name.jar (classes).

I want to make plugin system simpler - take class files from all plugins and package it into one big jar by maven assembly plugin and i need to know some way how to merge Spring XML configuration files into one (preferably using Maven).