-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Reopen] The default profile is ignored when rebuilding an application generated with Jhipster 8.6.0 #26603
Comments
I tried to recreate the issue with If I change a Java class and re-compile it, it restarts and the dev profile is still there. I tried with your From
JHipster configuration, a
|
Happened in a vscode rebuild with me. |
Sure. I'm using vscode too. I tested with Intellij and the error does not occur. Any idea for a workarond? I use wsl and vscode fits perfectly. |
No, probably duplicate the maven-resources-plugin configuration instead of rely on parent pom configuration. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Can y'all see if you can reproduce this issue with 8.7.0? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@dmarin2000 your error is not the same from issue description. Please open a new issue. |
Reproducing:
|
I have the same issue The project source code is available here: https://github.com/GLinBoy/MessageCentral |
This is probably fixed in #27062 |
Not fixed |
JHipster has completed the sample check This check uses |
Not fixed in 8.7.3 |
I’ve created a fresh demo project demo-hotreload.zip using Spring Initializr, with the @spring.profiles.active@ placeholder, and everything works perfectly, even in VS Code. The issue seems to occur only when using JHipster. @mshima, do you have any suggestions on how we might resolve this? Thanks |
Overview of the issue
The error reported in #26333 also occurs in JHipster 8.6.0. When I try to run it using the ./mvnw command or npm run backend:debug, it does not display the default profile in the JHipster banner but the @spring.profiles.active@ placeholder. Furthermore, the application fails to create the LoggingConfigurarion bean, as it is unable to inject the value of the server.port property, as shown in the message below.
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'server.port' in value "${server.port}"
Sometimes, it runs on first time or if the profile is informed (./mvnw -P dev), however, when changing any file in the backend it fails (same error) when performing the hot reload.
Motivation for or Use Case
The application should run without error using the default profile and shows the correct profile in the banner.
Reproduce the error
-Genarate a monolith JHipster 8.6.0
-Run the application with ./mvnw or npm run backend:debug
-Change any backend file to force hot reload
Related issues
#26333
#25979
Suggest a Fix
N/A
JHipster Version(s)
The error ocurrs in v8.6.0, v8.5.0 and v8.4.0,
JHipster configuration
WARNING! Since JHipster v8, the jhipster command will not use the locally installed generator-jhipster.
If you want to execute the locally installed generator-jhipster, run: npx jhipster
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.6.0
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)
git version 2.25.1
node: v20.12.2
npm: 10.5.0
Docker version 24.0.1, build 6802122
JDL for the Entity configuration(s)
##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: