Trying to use maven plugin querydsl-maven-plugin to generate sources

已回答

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?

0
Avatar
Permanently deleted user

The problem is that the IntelliJ isn't calling the plugin during the compile, as I mentioned.

0

> 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.

0
Avatar
Permanently deleted user

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 

 

1

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.

0

Real solution might be to run "Generate sources and Update Folders For All Projects" in Maven Project dialog, or running corresponding maven goal.

3

Tixomir solution helped me after a lot of searches! Thank you!

0

请先登录再写评论。