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

mvn liquibase:diff does not work in jhipster 8.2.1 #25605

Closed
1 task
shivam-lal-maersk opened this issue Mar 22, 2024 · 0 comments · Fixed by #25631
Closed
1 task

mvn liquibase:diff does not work in jhipster 8.2.1 #25605

shivam-lal-maersk opened this issue Mar 22, 2024 · 0 comments · Fixed by #25631

Comments

@shivam-lal-maersk
Copy link

Overview of the issue

After upgrading to JHipster 8.2.1 from 8.1.0, I tried to run mvn liquibase:diff command to update changelogin master.xml. However I am getting an error in maven run
Stacktrace:

 mvn liquibase:diff
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------< com.company:datastore >------------
[INFO] Building Datastore 0.0.3-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- liquibase:4.24.0:diff (default-cli) @ datastore ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.681 s
[INFO] Finished at: 2024-03-22T21:35:06+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] version can neither be null, empty nor blank
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Motivation for or Use Case

This is a bug since upgrade of JHipster to version 8.2.1 will not work. mvn liquibase:diff is an integral command while updating any entities.

Reproduce the error

Upgrade to JHipster version 8.2.1
Run mvn liquibase:diff

Related issues

NA

Suggest a Fix

This can be fixed by adding the version of spring-boot-starter-data-jpa in the liquibase plugin dependencies in pom.xml. Also, need to add jakarta.validation-api dependency.

JHipster Version(s)

8.2.1

JHipster configuration
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "datastore",
    "buildTool": "maven",
    "cacheProvider": "no",
    "clientFramework": "no",
    "clientTestFrameworks": null,
    "clientTheme": null,
    "creationTimestamp": 1697733352926,
    "databaseType": "sql",
    "devDatabaseType": "postgresql",
    "enableGradleEnterprise": null,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [
      "AMQUser",
      "GitHubPR",
      "EventStatus",
      "DestPermissions",
      "Tenant",
      "Cluster",
      "Destination",
      "Queue"
    ],
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.2.1",
    "lastLiquibaseTimestamp": 1697733712000,
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "monorepository": true,
    "nativeLanguage": "en",
    "packageName": "com.company.datastore",
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [],
    "serviceDiscoveryType": false,
    "skipClient": true,
    "skipCommitHook": true,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": null
  }
}
</pre>
</details>


##### **Environment and Tools**

java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

git version 2.39.3 (Apple Git-146)

node: v18.17.0
npm: 10.2.5

Docker version 25.0.3, build 4debf41

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

OS: Mac OS 14.4

  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants