Configuration Issue with Local Nexus Repository and External Dependency Fetching in :vaadinPrepareFrontend Task

I am facing difficulties configuring a local Nexus repository. I have added Jmix and NPM dependencies to the local Nexus repository. However, the problem lies in the :vaadinPrepareFrontend task, as it seems to fetch resources from an external URL such as https://unofficial-builds.nodejs.org/. This is preventing me from achieving complete isolation for my project from the external environment.

I would appreciate guidance on resolving this configuration issue, particularly in ensuring that the :vaadinPrepareFrontend task retrieves resources from my local Nexus repository instead of external URLs. Any insights or suggestions would be highly valuable. Thank you.

Hello,

just starting looking into flow and had to do the same.
I did the following for integration of local repository for the frontend dependencies:

build.gradle

vaadin {
    optimizeBundle = false
    nodeDownloadRoot = 'https://NODEJSREPO/'
}
  1. Create in project root:

.npmrc

registry=https://NPMREPO/

Hope that helps you.

1 Like

You may also need to set vaadin.pnpm.enable = false in application properties. However, I’m not sure.

1 Like