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
You can just change the project structure to add that folder as a "source" directory.
Project Structure → Modules → Click the generated-sources
folder and make it a sources
folder.
Or:
org.codehaus.mojo
build-helper-maven-plugin
1.4
test
generate-sources
add-source
${basedir}/target/generated-sources