public abstract class BaseMavenGruntMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
gruntBuildDirectory
Path to build directory (target for grunt sources), defaults to ${basedir}/target-grunt.
|
protected String |
jsSourceDirectory
Path to dir from where to copy all files that add to grunt environment - has to include package.json and Gruntfile.js, defaults to
"static".
|
protected String |
npmOfflineModulesFile
Name of packed node_modules TAR file, defaults to node_modules.tar.
|
protected String |
npmOfflineModulesFilePath
Path to packed node_modules TAR file directory relative to basedir, defaults to statics directory (ex webapp/static/).
|
protected String |
sourceDirectory
Path to dir, where jsSourceDir is located, defaults to src/main/webapp.
|
protected String |
warTargetDirectory
Path to dir inside WAR to which grunt build artifacts will be copied, defaults to jsSourceDirectory value.
|
| Constructor and Description |
|---|
BaseMavenGruntMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
basedir() |
void |
execute() |
protected abstract void |
executeInternal() |
protected String |
fullJsSourceDirectory() |
protected org.twdata.maven.mojoexecutor.MojoExecutor.ExecutionEnvironment |
pluginExecutionEnvironment() |
protected String |
relativeJsSourceDirectory() |
protected String |
target() |
@Parameter(property="gruntBuildDirectory",
defaultValue="${basedir}/target-grunt")
protected String gruntBuildDirectory
@Parameter(property="sourceDirectory",
defaultValue="src/main/webapp")
protected String sourceDirectory
@Parameter(property="jsSourceDirectory",
defaultValue="static")
protected String jsSourceDirectory
@Parameter(property="warTargetDirectory") protected String warTargetDirectory
@Parameter(property="npmOfflineModulesFile",
defaultValue="node_modules.tar")
protected String npmOfflineModulesFile
@Parameter(property="npmOfflineModulesFilePath",
defaultValue="")
protected String npmOfflineModulesFilePath
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected String basedir()
protected String target()
protected String fullJsSourceDirectory()
protected String relativeJsSourceDirectory()
protected org.twdata.maven.mojoexecutor.MojoExecutor.ExecutionEnvironment pluginExecutionEnvironment()
Copyright © 2015. All Rights Reserved.