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: org.apache.pluto.util.assemble.Assembler See Also: |