Hi Chris,
Almost all of our struts 2 development is to develop portlets, we use the
struts 2 portlet plugin a lot, and it works well for us. We even have a
couple of web applications where we use the same deployed *.war file for a
standalone webapp and a portlet webapp simultaneously.
We deploy our portlets to a pluto portlet container, so we simply add the
following in our pom.xml to have maven include the pluto-specific entries in
the web.xml that included in the resulting *.war file. It's the same build
process for portlet only and portlet + standalone webapp configurations.
>From the pom.xml ...
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.portals.pluto</groupId>
<artifactId>maven-pluto-plugin</artifactId>
<version>${pluto.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
I hope that helps.
Todd Kofford
[email protected]
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts2-Portlets-tp5716471p5716475.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]