public abstract class FlowModeAbstractMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
applicationProperties
Application properties file in Spring project.
|
boolean |
eagerServerLoad
Whether or not insert the initial Uidl object in the bootstrap index.html
|
File |
frontendDirectory
A directory with project's frontend source files.
|
File |
generatedFolder
The folder where flow will put generated files that will be used by
webpack.
|
protected File |
generatedTsFolder
The folder where flow will put TS API files for client projects.
|
protected File |
javaSourceFolder
Java source folders for scanning.
|
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"`.
|
File |
npmFolder
The folder where `package.json` file is located.
|
protected File |
openApiJsonFile
Default generated path of the OpenAPI json.
|
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 |
resourceOutputDirectory
Defines the output directory for generated non-served resources, such as
the token file.
|
protected File |
webpackOutputDirectory
The folder where webpack should output index.js and other generated
files.
|
| Constructor and Description |
|---|
FlowModeAbstractMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Lookup |
createLookup(ClassFinder classFinder) |
boolean |
useDeprecatedV14Bootstrapping()
Check if the plugin is running in legacy V14 bootstrap mode or not.
|
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${project.basedir}")
public File npmFolder
@Parameter(defaultValue="${project.build.directory}/frontend/")
public File generatedFolder
@Parameter(defaultValue="${project.basedir}/frontend/")
public File frontendDirectory
@Parameter(defaultValue="${vaadin.productionMode}")
public boolean productionMode
@Parameter(defaultValue="${vaadin.eagerServerLoad}")
public boolean eagerServerLoad
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/VAADIN/webapp/")
protected File webpackOutputDirectory
@Parameter(defaultValue="${project.basedir}/src/main/resources/application.properties")
protected File applicationProperties
@Parameter(defaultValue="${project.build.directory}/generated-resources/openapi.json")
protected File openApiJsonFile
@Parameter(defaultValue="${project.basedir}/src/main/java")
protected File javaSourceFolder
@Parameter(defaultValue="${project.basedir}/frontend//generated")
protected File generatedTsFolder
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/VAADIN/")
protected File resourceOutputDirectory
@Parameter(property="pnpm.enable",
defaultValue="true")
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="v14.15.4")
protected String nodeVersion
FrontendTools for details.@Parameter(property="node.download.root",
defaultValue="https://nodejs.org/dist/")
protected String nodeDownloadRoot
NodeInstaller.DEFAULT_NODEJS_DOWNLOAD_ROOT.
Example: "https://nodejs.org/dist/".public boolean useDeprecatedV14Bootstrapping()
protected Lookup createLookup(ClassFinder classFinder)
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.