Jeepster import-jdl does not create objects

I have a problem with import-jdl and I'm not sure why it is not working. I am trying to create objects for a microservice application.

All I get is

Imported jdl.

but nothing more.

I used the https://jhipster.imtqy.com/jdl-studio/ sample provided by JDL without any changes.

I tried this on my Mac, Linux (Ubuntu) and the Docker container, but I get the same error.

Here are the software versions:

JHipster Generator: v3.3.0 npm : 3.9.2 yo : 1.8.3 

The use of microservices

------- Application files will be generated in the folder: / Users / anand / Desktop / jhexample


JHipster update available: 3.4.0 (current: 3.3.0) Run npm install -g generator-jhipster to update. ______________________________________________________________________________

? (1/16) What type of application would you like to create? Microservice application

? (2/16) What is the base name of your application? jhexample

? (3/16) Since you are working in a microservice architecture on which a port would like your server to work? It must be unique in order to avoid port conflicts. 8081

? (4/16) What is your default Java package name? com.anand

? (5/16) What type of authentication would you like to use? JWT authentication (stateless, with token)

? (6/16) Which database would you like to use? Mongodb

? (7/16) Do you want to use Maven or Gradle to create a backend? Maven

? (8/16) Do you want to enable internationalization support? No

? (9/16) What testing schemes would you like to use? (Press to select) Gatling

... chick ...

Server application successfully generated.

 anand$ yo jhipster:import-jdl ./jhipster-jdl.jh 

Imported jdl.

+6
source share
5 answers

I faced the same situation: jdl is imported but nothing is generated. As Vikas Joshi suggests trying jhipster-uml:

 npm install -g jhipster-uml jhipster-uml ./jhipster-jdl.jh -db mongodb 

jhispter-uml usually returns more feedback. In any case, keep in mind that in MongoDB as a noSQL database this is not so, some parameters do not make sense (for example, relations between entities).

+7
source

I also struggled with the same error (for MySql iso MongoDB). I used jhipster-uml iso jhipster: import-jdl to create entities, and it worked for me. Hope it works with MongoDB too. I don't know why this does not work with import-jdl.

+1
source

I am running the same issue on my OSX. Currently, I have managed to get around this through a linux virtual machine (debian / ubuntu) using jipster-generator version 3.4.0. A newer version will not create entities even for me.

Try to remove all the content installed from the bottom up from the installation guide here to the nodejs node.

So you will do the following:

 npm uninstall -g generator-jhipster npm uninstall -g gulp npm uninstall -g bower npm uninstall -g yo 

Then follow the steps to remove nodejs from here

After uninstalling, run the nodejs and commponents installation again, as suggested in the ihipster manual with the only difference in the last step:

 npm install -g generator-jhipster@3.4.0 
+1
source

I came across this about a month ago. It turned out the errors in the .jh file. Can you check / post your jh file here? Hope this helps.

Especially for relations with a foreign key, it is enough to define a column only in the base object. You also do not need to define it in the target.

Edit: Oh, just noticed that you are using MongoDB. This answer does not apply to you. Mods, please delete this post if not relevant.

0
source

if you are here because your jhipster import-jdl youfile.jdl does not generate java code for entities, but reports that entities have been imported, try

jhipster import-jdl youfile.jdl --force

0
source

All Articles