I am trying to use the Maven XML plugin to validate my xml against a schema but I keep having an error saying:
cvc-elt.1: Cannot find the declaration of e
In your pom.xml
org.codehaus.mojo xml-maven-plugin validate src/main/resources/xsd/catalog.xml src/main/resources/xsd src/main/resources/xml/mytag.xml
and in your catalog file src/main/resources/xsd/catalog.xml
For more information on catalog configuration see Maven Plugin Catalog