JHipster导入JDL/创建实体仅生成客户端,无Java文件生成求助
Hey there, let's get to the bottom of why your JHipster commands aren't spitting out those Java files you need!
Root Cause
Looking at your .yo-rc.json configuration, the key issue is this line:
"skipServer": true
This JHipster flag explicitly tells the generator to skip all server-side code generation—that includes Java entities, repositories, services, and other backend components. The reason Liquibase files still generated is likely due to the generator-jhipster-entity-audit plugin you have configured, which handles database auditing changes independently of the core server skip setting.
Step-by-Step Fix
Backup your configuration first (always a good habit!)
Make a copy of your.yo-rc.jsonfile before making any edits.Update the
skipServersetting
Open.yo-rc.jsonand change:"skipServer": trueto:
"skipServer": falseRe-run your generation command
Execute the same import or entity command you used before, like:jhipster import-jdl db/jhipster-jdl.jhor
jhipster:entity someEntityJHipster will now generate all missing Java files (entities, repositories, services, etc.) while respecting your existing Liquibase changes (no duplicate or conflicting database scripts will be created).
Alternative: Temporary Override (No Config Edit)
If you don't want to permanently change your configuration, you can override the skipServer flag directly in the command line:
jhipster import-jdl db/jhipster-jdl.jh --skip-server false
Quick Note
Since you're using JHipster 4.13.1 (a slightly older version), this flag behaves exactly as described—double-check that you don't have any other conflicting plugin settings that might interfere, but the skipServer toggle is the main culprit here.
内容的提问来源于stack exchange,提问作者Alejandro Doglioli

