public abstract class FlowModeAbstractMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ciBuild
Setting this to true will run
npm ci instead of
npm install when using npm. |
protected File |
frontendDirectory
A directory with project's frontend source files.
|
protected String |
nodeDownloadRoot
Download node.js from this URL.
|
protected String |
nodeVersion
The node.js version to be used when node.js is installed automatically by
Vaadin, for example `"v14.15.4"`.
|
protected boolean |
pnpmEnable
Instructs to use pnpm for installing npm frontend resources.
|
boolean |
productionMode
Whether or not we are running in productionMode.
|
protected boolean |
requireHomeNodeExec
Whether vaadin home node executable usage is forced.
|
protected File |
webpackOutputDirectory
The folder where webpack should output index.js and other generated
files.
|
| Constructor and Description |
|---|
FlowModeAbstractMojo() |
@Parameter(defaultValue="${vaadin.productionMode}")
public boolean productionMode
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/VAADIN/")
protected File webpackOutputDirectory
@Parameter(property="pnpm.enable",
defaultValue="false")
protected boolean pnpmEnable
@Parameter(property="require.home.node",
defaultValue="false")
protected boolean requireHomeNodeExec
true then vaadin home 'node' is checked and installed if it's
absent. Then it will be used instead of globally 'node' or locally
installed installed 'node'.@Parameter(property="node.version",
defaultValue="v22.14.0")
protected String nodeVersion
FrontendTools for details.@Parameter(property="node.download.root") protected String nodeDownloadRoot
NodeInstaller.DEFAULT_NODEJS_DOWNLOAD_ROOT.
Example:
"https://nodejs.org/dist/".@Parameter(defaultValue="${project.basedir}/frontend/")
protected File frontendDirectory
@Parameter(property="ci.build",
defaultValue="false")
protected boolean ciBuild
npm ci instead of
npm install when using npm.
If using pnpm, the install will be run with --frozen-lockfile
parameter.
This makes sure that the versions in package lock file will not be
overwritten and production builds are reproducible.Copyright © 2025. All rights reserved.