Trying to use maven plugin querydsl-maven-plugin to generate sources
Answered
I'm trying to generate QueryDSL sources from my JPA annotated entities,
I have configured the build plugin as follow: http://www.querydsl.com/static/querydsl/4.1.4/reference/html/ch03s03.html#d0e2531
IDEA doesn't generate my sources when I pressing CTRL+F9.
Why?
Please sign in to leave a comment.
Please check https://confluence.jetbrains.com/display/IDEADEV/Maven+Integration+FAQ#MavenIntegrationFAQ-GeneratedSources.
The problem is that the IntelliJ isn't calling the plugin during the compile, as I mentioned.
> Any time you want to generate sources you simply execute the corresponding goal, bound for generation (usually generate-sources, generate-test-sources). After that IDEA will pick up new folders and set them up.
FIXED, I changed the Java Runtime who runs the IDEA, to a JDK installed version. It was configured to run with a JRE.
This plugin must run using a JDK.
>> All platforms: switch between installed runtimes
https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under
IntelliJ IDEA bundled runtime is JDK, IDE will not run on JRE because it requires tools.jar, so it's not clear how it helped.
Real solution might be to run "Generate sources and Update Folders For All Projects" in Maven Project dialog, or running corresponding maven goal.
Tixomir solution helped me after a lot of searches! Thank you!