-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Overview of the issue
I've already wrote what's problem here: 995bf17#commitcomment-26665675
Looks like from v4.12.0 and newer applications may be affected with stuck-spring-profile-selection which always runs app on dev,swagger (default) profiles.
It's impossible to run app in other profile with mvnw command.
Motivation for or Use Case
Can't run app in other profile using maven :).
Reproduce the error
Use .yo-rc.json in linked commit above to regenerate application and try to start it with mvnw -Pprod command. App will start in dev,swagger profile which is wrong behavior.
Related issues
Not founded anything fresh related to that.
Suggest a Fix
Suggestion is proposed in linked above commit.
However whole configuration should be based on spring maven plugin - https://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-profiles.html
JHipster Version(s)
v4.13.1 and v4.13.2 is affected.
Probably v4.12.0 and newer too (not tested).
JHipster configuration
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.whatever",
"nativeLanguage": "pl"
},
"jhipsterVersion": "4.13.1",
"baseName": "Whatever",
"packageName": "com.whatever",
"packageFolder": "com.whatever",
"serverPort": "12345",
"authenticationType": "uaa",
"uaaBaseName": "UAA",
"hibernateCache": "no",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "no",
"devDatabaseType": "no",
"prodDatabaseType": "no",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": "eureka",
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": false,
"jwtSecretKey": "1234",
"enableTranslation": true,
"applicationType": "microservice",
"testFrameworks": [],
"jhiPrefix": "jhi",
"skipClient": true,
"skipUserManagement": true,
"nativeLanguage": "pl",
"languages": [
"pl",
"en"
],
"clientPackageManager": "yarn",
"cacheProvider": "no",
"enableHibernateCache": false
}
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
Not needed.
Browsers and Operating System
Not related (really not related! @PierreBesson below) .