Package com.vaadin.flow.plugin.maven
Class FlowModeAbstractMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
- All Implemented Interfaces:
PluginAdapterBase,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BuildFrontendMojo,CleanFrontendMojo,ConvertPolymerMojo,PrepareFrontendMojo
public abstract class FlowModeAbstractMojo
extends org.apache.maven.plugin.AbstractMojo
implements PluginAdapterBase
The base class of Flow Mojos in order to compute correctly the modes.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAdditionally include compile-time-only dependencies matching the pattern.protected BooleanWhether or not we are running in productionMode.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.vaadin.flow.server.frontend.scanner.ClassFindergetClasspathElements(org.apache.maven.project.MavenProject project) Generates a List of ClasspathElements (Run and CompileTime) from a MavenProject.booleanbooleanbooleanbooleanvoidlogDebug(CharSequence debugMessage) voidlogError(CharSequence warning, Throwable e) voidlogInfo(CharSequence infoMessage) voidlogWarn(CharSequence warning) voidlogWarn(CharSequence warning, Throwable e) booleanbooleanbooleanbooleanbooleanMethods 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 org.apache.maven.plugin.Mojo
executeMethods inherited from interface com.vaadin.flow.plugin.base.PluginAdapterBase
createLookup
-
Field Details
-
INCLUDE_FROM_COMPILE_DEPS_REGEX
Additionally include compile-time-only dependencies matching the pattern.- See Also:
-
productionMode
Whether or not we are running in productionMode.
-
-
Constructor Details
-
FlowModeAbstractMojo
public FlowModeAbstractMojo()
-
-
Method Details
-
getClasspathElements
Generates a List of ClasspathElements (Run and CompileTime) from a MavenProject.- Parameters:
project- a given MavenProject- Returns:
- List of ClasspathElements
-
applicationProperties
- Specified by:
applicationPropertiesin interfacePluginAdapterBase
-
eagerServerLoad
public boolean eagerServerLoad()- Specified by:
eagerServerLoadin interfacePluginAdapterBase
-
frontendDirectory
- Specified by:
frontendDirectoryin interfacePluginAdapterBase
-
generatedTsFolder
- Specified by:
generatedTsFolderin interfacePluginAdapterBase
-
getClassFinder
public com.vaadin.flow.server.frontend.scanner.ClassFinder getClassFinder()- Specified by:
getClassFinderin interfacePluginAdapterBase
-
getJarFiles
- Specified by:
getJarFilesin interfacePluginAdapterBase
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfacePluginAdapterBase
-
javaSourceFolder
- Specified by:
javaSourceFolderin interfacePluginAdapterBase
-
javaResourceFolder
- Specified by:
javaResourceFolderin interfacePluginAdapterBase
-
logDebug
- Specified by:
logDebugin interfacePluginAdapterBase
-
logInfo
- Specified by:
logInfoin interfacePluginAdapterBase
-
logWarn
- Specified by:
logWarnin interfacePluginAdapterBase
-
logWarn
- Specified by:
logWarnin interfacePluginAdapterBase
-
logError
- Specified by:
logErrorin interfacePluginAdapterBase
-
nodeDownloadRoot
- Specified by:
nodeDownloadRootin interfacePluginAdapterBase- Throws:
URISyntaxException
-
nodeAutoUpdate
public boolean nodeAutoUpdate()- Specified by:
nodeAutoUpdatein interfacePluginAdapterBase
-
nodeVersion
- Specified by:
nodeVersionin interfacePluginAdapterBase
-
npmFolder
- Specified by:
npmFolderin interfacePluginAdapterBase
-
openApiJsonFile
- Specified by:
openApiJsonFilein interfacePluginAdapterBase
-
pnpmEnable
public boolean pnpmEnable()- Specified by:
pnpmEnablein interfacePluginAdapterBase
-
useGlobalPnpm
public boolean useGlobalPnpm()- Specified by:
useGlobalPnpmin interfacePluginAdapterBase
-
projectBaseDirectory
- Specified by:
projectBaseDirectoryin interfacePluginAdapterBase
-
requireHomeNodeExec
public boolean requireHomeNodeExec()- Specified by:
requireHomeNodeExecin interfacePluginAdapterBase
-
servletResourceOutputDirectory
- Specified by:
servletResourceOutputDirectoryin interfacePluginAdapterBase
-
webpackOutputDirectory
- Specified by:
webpackOutputDirectoryin interfacePluginAdapterBase
-
isJarProject
public boolean isJarProject()- Specified by:
isJarProjectin interfacePluginAdapterBase
-
buildFolder
- Specified by:
buildFolderin interfacePluginAdapterBase
-
postinstallPackages
- Specified by:
postinstallPackagesin interfacePluginAdapterBase
-
isFrontendHotdeploy
public boolean isFrontendHotdeploy()- Specified by:
isFrontendHotdeployin interfacePluginAdapterBase
-
skipDevBundleBuild
public boolean skipDevBundleBuild()- Specified by:
skipDevBundleBuildin interfacePluginAdapterBase
-
isPrepareFrontendCacheDisabled
public boolean isPrepareFrontendCacheDisabled()- Specified by:
isPrepareFrontendCacheDisabledin interfacePluginAdapterBase
-