Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not generating service files #26206

Closed
sholland236 opened this issue May 21, 2024 · 4 comments
Closed

Not generating service files #26206

sholland236 opened this issue May 21, 2024 · 4 comments

Comments

@sholland236
Copy link

When using jhipster command to generate a new project, the service files within the java folder are not being created.

Specific to my generation: I selected both keycloak and elasticsearch during the generation process.

First found on 8.3.0, but I've recently updated to 8.4.0 and still experiencing the issue

Running jhipster info provides the following:

.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "oauth2",
    "baseName": "empty",
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "react",
    "clientTestFrameworks": [],
    "clientTheme": "none",
    "creationTimestamp": 1715958555511,
    "databaseType": "sql",
    "devDatabaseType": "postgresql",
    "devServerPort": 9060,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [],
    "feignClient": null,
    "jhipsterVersion": "8.3.0",
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "en",
    "packageName": "com.empty.experience",
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": "elasticsearch",
    "serverPort": null,
    "serverSideOptions": [
      "searchEngine:elasticsearch"
    ],
    "serviceDiscoveryType": false,
    "skipUserManagement": true,
    "syncUserWithIdp": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}
Environment and Tools

java version "21.0.1" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

git version 2.35.1.windows.2

node: v20.9.0
npm: 10.2.3

Docker version 20.10.17, build 100c701

@mraible
Copy link
Contributor

mraible commented May 21, 2024

Can you please elaborate and describe the service files you expect to be created?

@sholland236
Copy link
Author

Yes, I was expecting the dto, mapper and UserService files as with a previous keycloak generation to be created.

Copy link
Contributor

github-actions bot commented May 21, 2024

JHipster has completed the sample check
.yo-rc.json: valid
Entities JDL:
Application: successfully generated
Frontend check: success
Backend check: success
E2E check: success

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.

@mshima
Copy link
Member

mshima commented May 21, 2024

syncUserWithIdp is default to false to avoid creating User repository/service that is useful in relationships only.

  • It's enabled if a relationship with User is found.
  • If it's manually enabled with --sync-user-with-idp option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants