Change node location in vaadin-maven-plugin prepare-frontend

The maven plugin will install Node into user’s home directory during invocation of prepare-frontend. Is it possible to use the project dir as installation location instead of user’s home directory?

I know, I can use frontend-maven-plugin to achive this, but this needs extra configuration and does not handle auto-update as the vaadin-maven-plugin does.

Background is, that I would like to cache the node installation when run in Gitlab CI/CD. Unfortunately, Gitlab CI/CD only allows caching in the projects folder.

It installs in the user home… so you could technically change that… but I would highly recommend to install and maintain it yourself, instead of trusting some tooling to download stuff and do a lot of things while just building your application.

1 Like