org.apache.pluto.maven
Class AssembleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.pluto.maven.AbstractPlutoMojo
org.apache.pluto.maven.AbstractPortletMojo
org.apache.pluto.maven.AssembleMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class AssembleMojo
- extends AbstractPortletMojo
The AssembleMojo is responsible for assembling a web application for deployment
into the Pluto portlet container. Assembly, in this context, is the process of
updating a web application's WEB-INF/web.xml with Pluto specific parameters for
deployment in Pluto.
This Mojo is able to operate on individual descriptors by specifying
portletXml
, webXml
, and webXmlDestination
.
If your project uses standard Maven 2 directory layouts, the defaults will
provide proper values.
Example Maven 2 pom.xml
usage:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.pluto</groupId>
<artifactId>maven-pluto-plugin</artifactId>
</plugin>
</plugins>
</build>
...
</project>
This Mojo can also operate on entire WAR or EAR archive files by specifying
a list of archive path names in archives
.
Example Maven 2 pom.xml
usage:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.pluto</groupId>
<artifactId>maven-pluto-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
<configuration>
<assemblyOutputDirectory>${project.build.directory}/assembled-wars</assemblyOutputDirectory>
<archives>
<assembleArchive>
${project.build.directory}/wartoassemble.war
</assembleArchive>
<assembleArchive>
${project.build.directory}/anotherwartoassemble.war
</assembleArchive>
</archives>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
- Since:
- Jul 30, 2005
- See Also:
Assembler
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
doExecute()
Process the actual execution. |
protected void |
doValidate()
|
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 |
AssembleMojo
public AssembleMojo()
doExecute
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
AbstractPlutoMojo
- Process the actual execution.
- Specified by:
doExecute
in class AbstractPlutoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
doValidate
protected void doValidate()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
doValidate
in class AbstractPlutoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.