Publishing settings for a WebSphere Application Server Liberty

Publishing involves copying files such as application, resource files, and deployment descriptor files to the correct location for the server to find and use them. You can choose whether you want to publish your application on the server or run your application within the development environment without copying the application into the directories of the server.

About this task

Run applications directly from the workspace

The Run applications directly from the workspace publishing option requests the server to run your application from the workspace.

This publishing option publishes faster when an application contains a single root, as opposed to containing multiple roots. The workbench might require additional processing time to publish an application with multiple roots. To determine whether the structure of your application contains a single or multiple roots, use the Project Structure Validator. For details, see Creating and configuring Java EE projects using wizards.

CAUTION:
When you are using the Run applications directly from the workspace publishing option, the server can lose track of your application under the following scenarios:
  • If you delete your workspace, the server can no longer find your application. As a result, if you did not put your application under source control management and the workspace is deleted, you can lose your application from your file system.
  • If you delete an application from the workspace without removing it from the server, the server can no longer find your application. As a result, you might encounter errors when starting the server because the server tries to start the missing application from the workspace.

Procedure

  1. In the Servers view, double-click your WebSphere® Application Server Liberty server to open the server editor.
  2. In Liberty Settings, configure publishing settings by choosing any or none of the following options:
    • You can select Run applications directly from the workspace.

      This option is selected by default.

    • You can select Allow publishing of applications containing errors.

      If you do not select this option, then when you attempt to publish an application that contains errors, you receive a warning. You can choose to cancel publishing and fix your errors, or you can choose to publish your application without correcting the errors. If you select this option, then you do not receive a warning when you attempt to publish an application that contains errors.

  3. Save and close the editor.

Icon that indicates the type of topic Task topic

File name: t_publishingsettings.html