org.apache.pluto.maven
Class AssembleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.pluto.maven.AbstractPlutoMojo
          extended by org.apache.pluto.maven.AbstractPortletMojo
              extended by 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

Field Summary
 
Fields inherited from class org.apache.pluto.maven.AbstractPlutoMojo
installationDirectory, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AssembleMojo()
           
 
Method Summary
protected  void doExecute()
          Process the actual execution.
protected  void doValidate()
           
 
Methods inherited from class org.apache.pluto.maven.AbstractPlutoMojo
execute
 
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
 

Constructor Detail

AssembleMojo

public AssembleMojo()
Method Detail

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-2011 Apache Software Foundation. All Rights Reserved.