Home > FAQs > How to build the portlet WAR for a specific portal server |

Apache Struts 2 Documentation
How to build the portlet WAR for a specific portal server
Edit Page Browse Space Add Page Add News
Build instructions

Budiling a portlet WAR, step by step.

- Run `ant` from the `webapp` project directory
- cd to `webapps` directory
- To build a portlet webapp, run: `ant build-portlet`

- Use the `container` system property to target a specific container, e.g. '-Dcontainer=exo'.
  - Several containers are supported.
  - Example command:

    -     ant build-portlet \-Dcontainer=jboss-portal-2.2

- Check the `etc/yourcontainer` directory for a README file. If available, check for further instructions.
- Deploy the WAR to your portal server

The referenced Ant bjuild file is not yet available for Struts 2