Skip to content

chore: Add 'localNpm' Maven build profile and 'npm.registry' Maven property to accomodate the UI build in corporate environments#5465

Merged
SteKoe merged 3 commits into
codecentric:masterfrom
cdprete:chore/local-npm
Jul 11, 2026
Merged

chore: Add 'localNpm' Maven build profile and 'npm.registry' Maven property to accomodate the UI build in corporate environments#5465
SteKoe merged 3 commits into
codecentric:masterfrom
cdprete:chore/local-npm

Conversation

@cdprete

@cdprete cdprete commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Hi.

In corporate environments the access to certain resources may be blocked, may need some proxy settings or these resources may be provided through different channels (e.g.: an internal package manager).

This PR adds the possibility to build the UI locally with the available toolchain by:

  1. executing the necessary npm steps with the exec-maven-plugin, to leverage the already installed NodeJS and NPM and already available on the PATH
  2. adding a Maven property named npm.registry which can be externally set with -Dnpm.registry=https://my.corporate.registry during the build in order to point to the corporate internal registry rather than to https://registry.npmjs.org/

@cdprete cdprete requested a review from a team as a code owner June 19, 2026 11:46
@cdprete cdprete marked this pull request as draft June 19, 2026 11:50
@cdprete cdprete marked this pull request as ready for review June 19, 2026 12:01
@cdprete cdprete changed the title chore: Add 'localNpm' build profile to allow to build the UI with the already installed Node and NPM instead of downloading it since the download may be blocked (e.g.: in corporate environments) already installed Node and NPM instead of downloading it since the download may be blocked (e.g.: in corporate environments) and 'npm.registry' Maven property to allow to change the registry to use chore: Add 'localNpm' Maven build profile and 'npm.registry' to accomodate corporate environments Jun 19, 2026
@cdprete cdprete changed the title chore: Add 'localNpm' Maven build profile and 'npm.registry' to accomodate corporate environments chore: Add 'localNpm' Maven build profile and 'npm.registry' Maven property to accomodate the UI build in corporate environments Jun 19, 2026
@cdprete cdprete force-pushed the chore/local-npm branch 6 times, most recently from 3022614 to 8a89e2d Compare June 24, 2026 11:34
@cdprete cdprete force-pushed the chore/local-npm branch 7 times, most recently from 135107a to d588385 Compare July 8, 2026 08:58
… already installed Node and NPM instead of downloading it since the download may be blocked (e.g.: in corporate environments) and 'npm.registry' Maven property to allow to change the registry to use
@SteKoe SteKoe enabled auto-merge (squash) July 11, 2026 17:57
@SteKoe SteKoe merged commit 919d18d into codecentric:master Jul 11, 2026
1 check passed
@cdprete cdprete deleted the chore/local-npm branch July 11, 2026 18:16
@cdprete

cdprete commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Interesting you had to add the default registry explicitly, @SteKoe.
For me, it worked without issues as it was before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants