Closed vishalgvk closed 10 months ago
JHipster has completed the sample check
.yo-rc.json
:
Entities JDL:
Application: successfully generated
Frontend check: skipped
Backend check: skipped
E2E check: skipped
This check uses jhipster info
output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.
Samples for main branch are compatible with jhipster v7. You should use the default branch which is the v8 branch for jhipster v8.
Samples for main branch are compatible with jhipster v7. You should use the default branch which is the v8 branch for jhipster v8.
Hi @mshima As you mentioned, I tried with reactive-mf.jdl from v8 branch instead of main. Still the same issue persists for me. Blog code isn't being generated as User entity couldn't be found (in spite of having builtInEntity in the .jdl file)
I've just tried and it worked:
% npx generator-jhipster@8.1.0 jdl reactive-ms --skip-install --monorepository --workspaces
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.1.0
INFO! Generating jdls reactive-ms
WARNING! File not found: reactive-ms.jdl. Attempting download from jdl-samples repositoryINFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v8.1.0/reactive-ms.jdl
INFO! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/v8.1.0/reactive-ms.jdl: 404 - Not Found
INFO! Downloading file: https://raw.githubusercontent.com/jhipster/jdl-samples/v8/reactive-ms.jdl
.
.
.
Congratulations, JHipster execution is complete!
If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/
Thanks for using JHipster!
Note: jdl
command downloads from sample if there is no local file.
Hi @mshima
Thanks for your reply
I tried the command shared by you: npx generator-jhipster@8.1.0 jdl reactive-ms --skip-install --monorepository --workspaces
I found that using authenticationType as oauth2 instead of jwt (in my case) resolved the issue. So currently, jhipster isn't supporting builtInEntity when we use jwt.
Relationship with User in microservice applications is only supported by oauth2. I don’t think we should support this with jwt and oauth2 implementation should be reimplemented using another technology https://github.com/jhipster/generator-jhipster/issues/18755#issuecomment-1140315937.
Overview of the issue
Downloaded the updated reactive-mf.jdl file. Changed client to angular and db to mariadb. Executed
jhipster jdl reactive-mf.jdl --monorepository --workspaces
jhipster is generating source code for gateway and store but not for blog app.Motivation for or Use Case
Reproduce the error
Step 1: Download reactive-mf.jdl Step 2: Changed following values:
Sample:
Step 3: Execute
jhipster jdl reactive-mf.jdl --monorepository --workspaces
Results in:
JHipster Version(s)
jhipster version: 8.1.0 node version: 18.19.0