Related question How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin?
I have a cust
Solved it by removing the "Excluded" in the module setting (right click on project, "Open module settings").