Robert Heine
Robert Heine

Reputation: 1838

How to test a xml files during maven(3) test phase

Is there any way to perform a basic test/unittest for a xml file included in a module?

E.g. I like to "lint" test my persistence.xml or check if the schema to a xml-file is valid.

Upvotes: 0

Views: 37

Answers (1)

khmarbaise
khmarbaise

Reputation: 97348

What about using the xml-maven-plugin

It could be that the links will become invalid cause codehaus is shutting down it's services so you can take a look at https://github.com/mojohaus/xml-maven-plugin.

Upvotes: 1

Related Questions