To build a J2EE application you have to compile Java files and then deploy.
Compiling and Packaging Java Files
For a J2EE application, PowerDesigner generates a packaging command. The packaging command uses the pack task of the Ant build.xml file. The packaging command is automatically invoked when Eclipse compiles Java files.