How to validate automatically that Java project pom.xml conforms to some well defined pom.xml template?
Validation may include tag structure, specific tags presence and tags values validation.
The goal is to add pom.xml validation to CI processes of repository automatic creation.
Obvious way is parsing pom.xml and making sure it conforms to standards, but is there maven alternative way which accepts as input pom.xml template file and pom.xml to validate?