JBoss Community Archive (Read Only)

GateIn Portal 3.8

Building and Deploying Portlets

  1. Make sure that your GateIn Portal instance is running.

  2. Open a command line and navigate to the root directory of your portlet project.

  3. Type this command to build and deploy the archive:

    mvn clean package jboss-as:deploy

    To deploy to other than default localhost:9999 JBoss instance, copy the following configuration
    just after <version>${jboss.as.plugin.version}</version> in the pom.xml file and adjust it to suit your needs.
    Note that <username> and <password> elements can be omitted sometimes, depending on your JBoss security settings.

    <configuration>
        <hostname>127.0.0.1</hostname>
        <port>9999</port>
        <username>admin</username>
        <password>secret</password>
    </configuration>
    This will deploy target/simplest-hello-world-portlet.war to the running instance of the portal.

Further Steps

To be able to see a freshly deployed portlet in action, you need to import it and add it to a page.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 13:19:34 UTC, last content change 2013-05-30 12:41:29 UTC.