Package com.vaadin.flow.plugin.maven
Class CleanFrontendMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
com.vaadin.flow.plugin.maven.CleanFrontendMojo
- All Implemented Interfaces:
PluginAdapterBase,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
FrontendDanceMojo
@Mojo(name="clean-frontend",
defaultPhase=PRE_CLEAN)
public class CleanFrontendMojo
extends FlowModeAbstractMojo
Goal that cleans the frontend files to a clean state.
Deletes Vaadin dependencies from package.json, the generated frontend folder and the npm/pnpm-related files and folders:
- node_modules
- pnpm-lock.yaml
- package-lock.json
- Since:
- 9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
Methods inherited from class com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
applicationProperties, buildFolder, 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
createLookup
-
Field Details
-
VAADIN
- See Also:
-
DEPENDENCIES
- See Also:
-
DEV_DEPENDENCIES
- See Also:
-
OVERRIDES
- See Also:
-
-
Constructor Details
-
CleanFrontendMojo
public CleanFrontendMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-