I'm unable to create a JHipster microservice using jhipster-generator-native 2.0.0. Here are the versions of software I have installed:
$ sdk current java
Using java version 21-graalce
$ jhipster-native --version
INFO! No custom commands found within blueprint: generator-jhipster-native at /usr/local/lib/node_modules/generator-jhipster-native
2.0.0 (generator-jhipster 8.1.0)
$ node -v
v20.12.2
$ npm -v
10.5.0
Here is how I configured the microservice and the error I received:
$ jhipster-native
INFO! No custom commands found within blueprint: generator-jhipster-native at /home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.1.0
===================== JHipster Native =====================
_______________________________________________________________________________________________________________
Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/
Application files will be generated in folder: /home/jaco/IdeaProjects/experiment/my-service
_______________________________________________________________________________________________________________
WARNING! ______________________________________________________________________________
JHipster update available: 8.4.0 (current: 8.1.0)
Run npm install -g generator-jhipster to update.
______________________________________________________________________________
? What is the base name of your application? myService
? Which *type* of application would you like to create? Microservice application
? Do you want to generate a feign client? Yes
? Besides Junit, which testing frameworks would you like to use?
? Do you want to make it reactive with Spring WebFlux? No
? As you are running in a microservice architecture, on which port would like your server to run? It should be unique to avoid port conflicts. 8081
? What is your default Java package name? com.mycompany.myapp
? Which service discovery server do you want to use? Consul (recommended)
? Which *type* of authentication would you like to use? OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
? Which *type* of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL)
? Which *production* database would you like to use? PostgreSQL
? Which *development* database would you like to use? PostgreSQL
? Which cache do you want to use? (Spring cache abstraction) Hazelcast (distributed cache, for multiple nodes, supports rate-limiting for gateway applications)
? Do you want to use Hibernate 2nd level cache? Yes
? Would you like to use Maven or Gradle for building the backend? Maven
? Which other technologies would you like to use?
? Which *Framework* would you like to use as microfrontend? No client
? Would you like to enable internationalization support? Yes
? Please choose the native language of the application English
? Please choose additional languages to install
info KeyStore '/home/jaco/IdeaProjects/experiment/my-service/src/main/resources/config/tls/keystore.p12' already exists. Leaving unchanged.
✔ applying multi-step templates
info Using existing git repository.
ERROR! An error occured while running jhipster-native:server#logoutResource
ERROR! ERROR! Unable to find /home/jaco/IdeaProjects/experiment/my-service/src/main/java/com/mycompany/myapp/web/rest/LogoutResource.java.
Error: Unable to find /home/jaco/IdeaProjects/experiment/my-service/src/main/java/com/mycompany/myapp/web/rest/LogoutResource.java.
at default.editFile (file:///home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/node_modules/generator-jhipster/dist/generators/base-core/generator.mjs:799:23)
at default.logoutResource (file:///home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/generators/server/generator.js:346:14)
at default.executeTask (file:///home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/node_modules/yeoman-generator/dist/actions/lifecycle.js:244:26)
at env.queueTask.once (file:///home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/node_modules/yeoman-generator/dist/actions/lifecycle.js:218:56)
at runLoop.add.once (file:///home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/node_modules/yeoman-environment/dist/environment-base.js:384:23)
at Immediate.<anonymous> (/home/jaco/.nvm/versions/node/v20.12.2/lib/node_modules/generator-jhipster-native/node_modules/grouped-queue/lib/subqueue.js:48:34)
at process.processImmediate (node:internal/timers:478:21)
I'm unable to create a JHipster microservice using jhipster-generator-native 2.0.0. Here are the versions of software I have installed:
Here is how I configured the microservice and the error I received: