Java 从JDL文件jhipster分析实体时出错

Java 从JDL文件jhipster分析实体时出错,java,jhipster,jdl,Java,Jhipster,Jdl,我使用JDL studio创建文件时没有错误,但使用jhipster cli导入文件时出现以下错误: Using JHipster version installed locally in current project's node_modules Executing jhipster:import-jdl ./thearthacker-jdl.jh Options: The jdl is being parsed. events.js:182 throw er; // Unhan

我使用JDL studio创建文件时没有错误,但使用jhipster cli导入文件时出现以下错误:

Using JHipster version installed locally in current project's node_modules Executing jhipster:import-jdl ./thearthacker-jdl.jh Options: The jdl is being parsed. events.js:182 throw er; // Unhandled 'error' event ^ Error: ERROR! Error while parsing entities from JDL at Environment.error (E:\web_project\_PROJECT\thearthackers\node_modules\yeoman-environment\lib\environment.js:140:40) at constructor.error (E:\web_project\_PROJECT\thearthackers\node_modules\generator-jhipster\generators\generator-base.js:1686:18) at constructor.parseJDL (E:\web_project\_PROJECT\thearthackers\node_modules\generator-jhipster\generators\import-jdl\index.js:108:22) at Object. (E:\web_project\_PROJECT\thearthackers\node_modules\yeoman-generator\lib\index.js:417:23) at E:\web_project\_PROJECT\thearthackers\node_modules\run-async\index.js:25:25 at Promise () at E:\web_project\_PROJECT\thearthackers\node_modules\run-async\index.js:24:19 at E:\web_project\_PROJECT\thearthackers\node_modules\yeoman-generator\lib\index.js:418:9 at runCallback (timers.js:781:20) at tryOnImmediate (timers.js:743:5) 有什么想法吗


谢谢您的帮助。

我刚刚尝试了您的JDL,收到以下错误消息:

IllegalAssociationException: Relationships from User entity is not supported in the declaration between User and Tag.
请注意,我使用的是当前的开发分支,因此我有一条您可能没有的错误消息(您没有给出版本号,但最近有所改进)

这意味着你不能从用户实体建立关系,因为它不能被JDL修改——这是特定于用户实体的。你可以找到更多的信息


有几种解决方案:您可以与用户建立一对一的关系,并通过JDL管理另一个实体。或者您可以手动修改用户实体(有些人将其子类化并在子类上工作,以便不更改用户)。

Ok,我从用户中删除关系,它就工作了。事实上,我没有错误消息,所以调试很困难。
IllegalAssociationException: Relationships from User entity is not supported in the declaration between User and Tag.