@Mojo(name="gzip",
defaultPhase=PROCESS_CLASSES,
threadSafe=true)
public class ResourceGZipperMojo
extends org.apache.maven.plugin.AbstractMojo
Usage: in pom.xml,
<plugin>
<groupId>com.manikanta</groupId>
<artifactId>em-maven-resource-optimizer</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<id>js-gzip</id>
<phase>process-classes</phase>
<goals>
<goal>gzip</goal>
</goals>
<configuration>
<resourcedir>${project.basedir}/src/main/webapp/js-min</resourcedir>
</configuration>
</execution>
</executions>
</plugin>
| Constructor and Description |
|---|
ResourceGZipperMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setLog(org.apache.maven.plugin.logging.Log log) |
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setLog(org.apache.maven.plugin.logging.Log log)
setLog in interface org.apache.maven.plugin.MojosetLog in class org.apache.maven.plugin.AbstractMojoCopyright © 2016. All rights reserved.