If you’re using eclipse, try selecting your project(s), then press alt+f5 (maven refresh). Select applicable checkboxes. Also, try adding “clean” as a goal.
I am not sure if this is the genuine way to package your product (unless you want to do this as a part of automation). Try right clicking and then exporting from package explorer (again, if you’re on eclipse).
I cannot recall that I would have ever seen an error like this. Sounds like a caching issue maybe. You can also validate your pom using xml validator, maybe you have a bracket related syntax error.
UPDATE: maybe check character encoding of your pom.
Thanks for your input. I’m using maven to compile the stuff not doing it inside eclipse/intellij. I checked your suggestions but that wasn’t my problem.