当我导入jdl文件时,只生成客户端

时间:2018-05-18 14:06:51

标签: java jhipster jdl

我正在使用jhipster,出于某种原因,当我执行jhipster import-jdl db / jhipster-jdl.jh或jhipster:entity someEntity jhipster只生成客户端时,生成任何java文件。

我还发现任何与liquibase相关的文件都是为我想创建的实体生成的

我尝试手动创建liquibase文件,我更新了数据库,但生成了任何java文件。

你有什么想法吗?

我的.yo-rc.json是:

{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.devs2go",
      "nativeLanguage": "es"
    },
    "jhipsterVersion": "4.13.1",
    "baseName": "Agenda",
    "packageName": "com.devs2go",
    "packageFolder": "com/devs2go",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "no",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": true,
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "54a29352e3a49129d3874f5ec2802fe57e9a99f6",
    "clientFramework": "angular1",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "es",
    "languages": [
      "es",
      "en"
    ],
    "enableHibernateCache": false,
    "skipServer": true
  },
  "generator-jhipster-entity-audit": {
    "auditFramework": "custom"
  },
  "generator-jhipster-pages": {
    "promptValues": {
      "pageSet": "Reports",
      "pageType": "clientOnly"
    }
  }
}

1 个答案:

答案 0 :(得分:0)

您的skipServer文件中true设置为.yo-rc.json,这意味着不会生成任何Java文件。我猜你是将你的项目生成为仅客户端应用程序或使用skip-server标志。

如果要生成Java,请将skipServer设置为false。如果您的项目是在没有后端的情况下生成的,那么您可能会遗漏一些必要的Java文件。