Build and run the AS7 demo examples

Task Summary
The Application Server source code ships with several demo examples. This is the procedure for building and running them.
Task Prerequisites
You must meet the following conditions before continuing with this task:
  1. Review the demo examples and decide which one you want to build.

    Change to the demos/ directory of the source, and run mvn package.
    Result: A listing of possible demo examples is displayed.
    Near the end of the output of the mvn package command is a list of all possible demo examples, and their requirements. Some examples need a specific J2EE, and some need to be run in a server that is in either domain or standalone mode.
  2. Choose your example, and fulfill its requirements.

    If your demo has additional requirements, meet them before continuing.
  3. Start the Application Server.

    Start the Application Server, in a separate command window from the one where you will build the example. Start it in either domain or standalone mode, as appropriate.
  4. Build your example.

    Build your example using the command mvn package -Dexample=example_name, where example_name is the name of the demo example from the first step.
Result: Your demo example is built.
Your example is built, and deploys and runs automatically.