I'm using maven-jaxb2-plugin to generate some classes in taget/generated-sources. Since I upgraded from IntelliJ 2019 to 2021.3 these generated classes are not recognized by the IDE anymore, even though the build works fine.
If I manually mark generated sources as Sources, it works fine. But after mvn clean install, I have to redo the process.
The previous version of IntellIj was able to set generated-sources as Sources by default. Can I replicate this behaviour on the newer version? I played a bit in Settings > Build Execution > Maven > Importing. But with no luck