You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

JHipster导入JDL/创建实体仅生成客户端,无Java文件生成求助

Fix for JHipster Not Generating Java Files (Only Client & Liquibase)

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

  1. Backup your configuration first (always a good habit!)
    Make a copy of your .yo-rc.json file before making any edits.

  2. Update the skipServer setting
    Open .yo-rc.json and change:

    "skipServer": true
    

    to:

    "skipServer": false
    
  3. Re-run your generation command
    Execute the same import or entity command you used before, like:

    jhipster import-jdl db/jhipster-jdl.jh
    

    or

    jhipster:entity someEntity
    

    JHipster 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:31:17