Package dev.hilla.maven
Class BuildFrontendMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
com.vaadin.flow.plugin.maven.BuildFrontendMojo
dev.hilla.maven.BuildFrontendMojo
- All Implemented Interfaces:
com.vaadin.flow.plugin.base.PluginAdapterBase,com.vaadin.flow.plugin.base.PluginAdapterBuild,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="build-frontend",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PROCESS_CLASSES)
@Execute(goal="configure")
public class BuildFrontendMojo
extends com.vaadin.flow.plugin.maven.BuildFrontendMojo
-
Field Summary
Fields inherited from class com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
INCLUDE_FROM_COMPILE_DEPS_REGEX, productionModeFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanOverride this to not clean generated frontend files after the build.Methods inherited from class com.vaadin.flow.plugin.maven.BuildFrontendMojo
ciBuild, compressBundle, execute, forceProductionBuild, frontendResourcesDirectory, generateBundle, generateEmbeddableWebComponents, optimizeBundle, runNpmInstallMethods inherited from class com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
applicationProperties, buildFolder, bunEnable, eagerServerLoad, frontendDirectory, generatedTsFolder, getClassFinder, getClasspathElements, getJarFiles, isDebugEnabled, isFrontendHotdeploy, isJarProject, isPrepareFrontendCacheDisabled, javaResourceFolder, javaSourceFolder, logDebug, logError, logInfo, logWarn, logWarn, nodeAutoUpdate, nodeDownloadRoot, nodeVersion, npmFolder, openApiJsonFile, pnpmEnable, postinstallPackages, projectBaseDirectory, requireHomeNodeExec, servletResourceOutputDirectory, skipDevBundleBuild, useGlobalPnpm, webpackOutputDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.plugin.base.PluginAdapterBase
applicationProperties, buildFolder, bunEnable, createLookup, eagerServerLoad, frontendDirectory, generatedTsFolder, getClassFinder, getJarFiles, isDebugEnabled, isFrontendHotdeploy, isJarProject, isPrepareFrontendCacheDisabled, javaResourceFolder, javaSourceFolder, logDebug, logError, logInfo, logWarn, logWarn, nodeAutoUpdate, nodeDownloadRoot, nodeVersion, npmFolder, openApiJsonFile, pnpmEnable, postinstallPackages, projectBaseDirectory, requireHomeNodeExec, servletResourceOutputDirectory, skipDevBundleBuild, useGlobalPnpm, webpackOutputDirectory
-
Constructor Details
-
BuildFrontendMojo
public BuildFrontendMojo()
-
-
Method Details
-
cleanFrontendFiles
protected boolean cleanFrontendFiles()Override this to not clean generated frontend files after the build. For Hilla, the generated files can still be useful for developers after the build. For example, a developer can usevite.generated.tsto run tests with vitest in CI.- Overrides:
cleanFrontendFilesin classcom.vaadin.flow.plugin.maven.BuildFrontendMojo- Returns:
false
-