How to update the JHipster project after updating JHipster generator?

爱⌒轻易说出口 提交于 2019-11-30 06:41:54

JHipster developers replied over twitter saying that yo jhipster has to be executed at the project root folder.

Following [jhipster releases] (https://jhipster.github.io/2015/05/31/jhipster-release-2.14.2.html): How to upgrade

Update your version of JHipster with:

npm update -g generator-jhipster

And then you can update your project when you run again

yo jhipster

You can also update your entities by running again the entity sub-generator, for example if your entity is named Foo

yo jhipster:entity Foo 

JHipster now has a page on Upgrading an application.

https://jhipster.github.io/upgrading-an-application/

TL;DR

Running the upgrade sub-generator

Go into the application’s root directory:

cd myapplication/

To upgrade your application, type:

yo jhipster:upgrade

If you want to run the upgrade sub-generator even if no new JHipster version is available, type:

yo jhipster:upgrade --force

If you want to update all entities you need to run

yo jhipster --with-entities

from the root of your project

Our jHipster monolithic project is based on an older build of the generator, and still reliant on bower / angularjs for the client. Thus the auto-update ability would never work.

I've been manually updating spring-boot-starter-parent every other sprint to try and bring it up into 2.x parity, but am still unable to leave the 1.5.x version stream due to various dependency issues with (mainly) Hibernate.

As a possible suggestion if you're in the same boat with your own monolithic project:

  • Pull down select versions of the jhipster-generator
  • Generate a "hello world" starter monolithic project
  • Compare the generated pom.xml with your own project
  • Compare the generated entity and configuration files with your own project
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!