Pom file as file-xml-database

I need next functionality: I have a maven pom file with dependencies. I want to use gradle build but not to rewrite dependencies from pom to save backward compatibility with maven. I suggest to write method parsing maven xml for dependencies tag and also method for reading dependency list from maven. Import methods. To use pom file as file-xml-database.