Class AbstractFrontendMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BowerMojo,EmberMojo,GruntMojo,GulpMojo,InstallNodeAndNpmMojo,InstallNodeAndPnpmMojo,InstallNodeAndYarnMojo,JspmMojo,KarmaRunMojo,NpmMojo,NpxMojo,PnpmMojo,WebpackMojo,YarnMojo
public abstract class AbstractFrontendMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional environment variables to pass to the build.protected org.apache.maven.plugin.MojoExecutionprotected FileThe base directory for installing node and npm.protected BooleanWhether you should skip while running in the test phase (default is false)protected booleanSet this to true to ignore a failure during testing.protected FileThe base directory for running all Node commands.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected abstract voidexecute(FrontendPluginFactory factory) protected abstract booleanImplemented by children to determine if this execution should be skipped.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
execution
@Component protected org.apache.maven.plugin.MojoExecution execution -
skipTests
Whether you should skip while running in the test phase (default is false) -
testFailureIgnore
@Parameter(property="maven.test.failure.ignore", defaultValue="false") protected boolean testFailureIgnoreSet this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.- Since:
- 1.4
-
workingDirectory
@Parameter(defaultValue="${basedir}", property="workingDirectory", required=false) protected File workingDirectoryThe base directory for running all Node commands. (Usually the directory that contains package.json) -
installDirectory
The base directory for installing node and npm. -
environmentVariables
Additional environment variables to pass to the build.
-
-
Constructor Details
-
AbstractFrontendMojo
public AbstractFrontendMojo()
-
-
Method Details
-
execute
- Throws:
FrontendException
-
skipExecution
protected abstract boolean skipExecution()Implemented by children to determine if this execution should be skipped. -
execute
public void execute() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-