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, productionMode

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Override 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, runNpmInstall

    Methods 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, webpackOutputDirectory

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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 use vite.generated.ts to run tests with vitest in CI.
      Overrides:
      cleanFrontendFiles in class com.vaadin.flow.plugin.maven.BuildFrontendMojo
      Returns:
      false