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,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
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
-
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
createLookup, isUseDeprecatedV14Bootstrapping
-
-
-
-
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 interfacePluginAdapterBase
-
eagerServerLoad
public boolean eagerServerLoad()
- Specified by:
eagerServerLoadin interfacePluginAdapterBase
-
frontendDirectory
public File frontendDirectory()
- Specified by:
frontendDirectoryin interfacePluginAdapterBase
-
generatedFolder
public File generatedFolder()
- Specified by:
generatedFolderin interfacePluginAdapterBase
-
generatedTsFolder
public File generatedTsFolder()
- Specified by:
generatedTsFolderin interfacePluginAdapterBase
-
getClassFinder
public com.vaadin.flow.server.frontend.scanner.ClassFinder getClassFinder()
- Specified by:
getClassFinderin interfacePluginAdapterBase
-
getJarFiles
public Set<File> getJarFiles()
- Specified by:
getJarFilesin interfacePluginAdapterBase
-
getUseDeprecatedV14Bootstrapping
public String getUseDeprecatedV14Bootstrapping()
- Specified by:
getUseDeprecatedV14Bootstrappingin interfacePluginAdapterBase
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfacePluginAdapterBase
-
javaSourceFolder
public File javaSourceFolder()
- Specified by:
javaSourceFolderin interfacePluginAdapterBase
-
javaResourceFolder
public File javaResourceFolder()
- Specified by:
javaResourceFolderin interfacePluginAdapterBase
-
logDebug
public void logDebug(CharSequence debugMessage)
- Specified by:
logDebugin interfacePluginAdapterBase
-
logInfo
public void logInfo(CharSequence infoMessage)
- Specified by:
logInfoin interfacePluginAdapterBase
-
logWarn
public void logWarn(CharSequence warning)
- Specified by:
logWarnin interfacePluginAdapterBase
-
logWarn
public void logWarn(CharSequence warning, Throwable e)
- Specified by:
logWarnin interfacePluginAdapterBase
-
logError
public void logError(CharSequence warning, Throwable e)
- Specified by:
logErrorin interfacePluginAdapterBase
-
nodeDownloadRoot
public URI nodeDownloadRoot() throws URISyntaxException
- Specified by:
nodeDownloadRootin interfacePluginAdapterBase- Throws:
URISyntaxException
-
nodeAutoUpdate
public boolean nodeAutoUpdate()
- Specified by:
nodeAutoUpdatein interfacePluginAdapterBase
-
nodeVersion
public String nodeVersion()
- Specified by:
nodeVersionin interfacePluginAdapterBase
-
npmFolder
public File npmFolder()
- Specified by:
npmFolderin interfacePluginAdapterBase
-
openApiJsonFile
public File openApiJsonFile()
- Specified by:
openApiJsonFilein interfacePluginAdapterBase
-
pnpmEnable
public boolean pnpmEnable()
- Specified by:
pnpmEnablein interfacePluginAdapterBase
-
useGlobalPnpm
public boolean useGlobalPnpm()
- Specified by:
useGlobalPnpmin interfacePluginAdapterBase
-
productionMode
public boolean productionMode()
- Specified by:
productionModein interfacePluginAdapterBase
-
projectBaseDirectory
public Path projectBaseDirectory()
- Specified by:
projectBaseDirectoryin interfacePluginAdapterBase
-
requireHomeNodeExec
public boolean requireHomeNodeExec()
- Specified by:
requireHomeNodeExecin interfacePluginAdapterBase
-
servletResourceOutputDirectory
public File servletResourceOutputDirectory()
- Specified by:
servletResourceOutputDirectoryin interfacePluginAdapterBase
-
webpackOutputDirectory
public File webpackOutputDirectory()
- Specified by:
webpackOutputDirectoryin interfacePluginAdapterBase
-
isJarProject
public boolean isJarProject()
- Specified by:
isJarProjectin interfacePluginAdapterBase
-
buildFolder
public String buildFolder()
- Specified by:
buildFolderin interfacePluginAdapterBase
-
postinstallPackages
public List<String> postinstallPackages()
- Specified by:
postinstallPackagesin interfacePluginAdapterBase
-
-