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:
com.vaadin.flow.plugin.base.PluginAdapterBase,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BuildFrontendMojo,CleanFrontendMojo,PrepareFrontendMojo
public abstract class FlowModeAbstractMojo extends org.apache.maven.plugin.AbstractMojo implements com.vaadin.flow.plugin.base.PluginAdapterBaseThe base class of Flow Mojos in order to compute correctly the modes.- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringINCLUDE_FROM_COMPILE_DEPS_REGEXAdditionally include compile-time-only dependencies matching the pattern.
-
Constructor Summary
Constructors Constructor Description FlowModeAbstractMojo()
-
Method Summary
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
INCLUDE_FROM_COMPILE_DEPS_REGEX
public static final String INCLUDE_FROM_COMPILE_DEPS_REGEX
Additionally include compile-time-only dependencies matching the pattern.- See Also:
- Constant Field Values
-
-
Method Detail
-
getClasspathElements
public static List<String> getClasspathElements(org.apache.maven.project.MavenProject project)
Generates a List of ClasspathElements (Run and CompileTime) from a MavenProject.- Parameters:
project- a given MavenProject- Returns:
- List of ClasspathElements
-
applicationProperties
public File applicationProperties()
- Specified by:
applicationPropertiesin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
eagerServerLoad
public boolean eagerServerLoad()
- Specified by:
eagerServerLoadin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
frontendDirectory
public File frontendDirectory()
- Specified by:
frontendDirectoryin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
generatedFolder
public File generatedFolder()
- Specified by:
generatedFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
generatedTsFolder
public File generatedTsFolder()
- Specified by:
generatedTsFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
getClassFinder
public com.vaadin.flow.server.frontend.scanner.ClassFinder getClassFinder()
- Specified by:
getClassFinderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
getJarFiles
public Set<File> getJarFiles()
- Specified by:
getJarFilesin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
getUseDeprecatedV14Bootstrapping
public String getUseDeprecatedV14Bootstrapping()
- Specified by:
getUseDeprecatedV14Bootstrappingin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
javaSourceFolder
public File javaSourceFolder()
- Specified by:
javaSourceFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
javaResourceFolder
public File javaResourceFolder()
- Specified by:
javaResourceFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
logDebug
public void logDebug(CharSequence debugMessage)
- Specified by:
logDebugin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
logInfo
public void logInfo(CharSequence infoMessage)
- Specified by:
logInfoin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
logWarn
public void logWarn(CharSequence warning)
- Specified by:
logWarnin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
logWarn
public void logWarn(CharSequence warning, Throwable e)
- Specified by:
logWarnin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
logError
public void logError(CharSequence warning, Throwable e)
- Specified by:
logErrorin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
nodeDownloadRoot
public URI nodeDownloadRoot() throws URISyntaxException
- Specified by:
nodeDownloadRootin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase- Throws:
URISyntaxException
-
nodeAutoUpdate
public boolean nodeAutoUpdate()
- Specified by:
nodeAutoUpdatein interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
nodeVersion
public String nodeVersion()
- Specified by:
nodeVersionin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
npmFolder
public File npmFolder()
- Specified by:
npmFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
openApiJsonFile
public File openApiJsonFile()
- Specified by:
openApiJsonFilein interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
pnpmEnable
public boolean pnpmEnable()
- Specified by:
pnpmEnablein interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
useGlobalPnpm
public boolean useGlobalPnpm()
- Specified by:
useGlobalPnpmin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
productionMode
public boolean productionMode()
- Specified by:
productionModein interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
projectBaseDirectory
public Path projectBaseDirectory()
- Specified by:
projectBaseDirectoryin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
requireHomeNodeExec
public boolean requireHomeNodeExec()
- Specified by:
requireHomeNodeExecin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
servletResourceOutputDirectory
public File servletResourceOutputDirectory()
- Specified by:
servletResourceOutputDirectoryin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
webpackOutputDirectory
public File webpackOutputDirectory()
- Specified by:
webpackOutputDirectoryin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
isJarProject
public boolean isJarProject()
- Specified by:
isJarProjectin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
buildFolder
public String buildFolder()
- Specified by:
buildFolderin interfacecom.vaadin.flow.plugin.base.PluginAdapterBase
-
-