@Mojo(name="build-frontend",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PREPARE_PACKAGE)
public class BuildFrontendMojo
extends FlowModeAbstractMojo
Constants.PACKAGE_JSON file with the NpmPackage
annotations defined in the classpath,npm installFrontendUtils.IMPORTS_NAME file imports with the
JsModule Theme and JavaScript annotations defined in
the classpath,FrontendUtils.WEBPACK_CONFIG file.| Modifier and Type | Field and Description |
|---|---|
protected File |
frontendResourcesDirectory
Defines the project frontend directory from where resources should be
copied from for use with webpack.
|
boolean |
oldLicenseChecker
Whether to use old JavaScript license checker and disable server-side
and offline features of the new license checker.
|
compatibility, compatibilityMode, frontendDirectory, nodeDownloadRoot, nodeVersion, pnpmEnable, productionMode, requireHomeNodeExec, webpackOutputDirectory| Constructor and Description |
|---|
BuildFrontendMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="${project.basedir}/src/main/resources/META-INF/resources/frontend")
protected File frontendResourcesDirectory
@Parameter(defaultValue="false") public boolean oldLicenseChecker
Compatibility/Bower mode always uses old license checking.
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class FlowModeAbstractMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2000–2023 Vaadin Ltd. All rights reserved.