Liberty Tools for IntelliJ IDEA is an IntelliJ IDEA plugin for developing cloud-native Java applications with Open Liberty and WebSphere Liberty. Iterate fast with Liberty dev mode, code with assistance for MicroProfile and Jakarta EE APIs, and easily edit Liberty configuration files.
Note: This is an early release.
Use Liberty Tools to run your Liberty Maven or Liberty Gradle projects through the Liberty tool window or the IntelliJ "Go to Action" menu. You can start, stop, or interact with Liberty dev mode on all configured Liberty Maven and Liberty Gradle projects in your workspace. Liberty Tools also helps you quickly and easily edit your application and configuration files by providing language support features for MicroProfile, Jakarta EE, and Liberty configuration and Java files.
For minimum requirements information and detailed instructions on how to use Liberty Tools, check out the Liberty Tools for IntelliJ IDEA user guide page.
- View Liberty projects in the Liberty tool window.
- Start/Stop dev mode.
- Start dev mode with custom parameters.
- Start dev mode in a container.
- Start dev mode with the debugger attached.
- Run tests.
- View test reports.
- Code with language assistance in the following configuration and application files:
server.xml
,server.env
,bootstrap.properties
Liberty configuration files- Jakarta EE 9.x APIs in Java files
- MicroProfile APIs in
microprofile-config.properties
and Java files
Feature completion in server.xml
files helps you quickly edit your Liberty runtime configuration.
Helpful code snippets are provided in Java files for Jakarta EE APIs such as Jakarta RESTful Web Services.
Code completion for microprofile-config.properties
files helps you easily set properties for MicroProfile APIs.
Editing assistance for configuration and application files is provided through the following language server projects, which this project consumes. For more information, see the documentation for these projects.
- Liberty configuration files: Liberty Config Language Server
- Jakarta EE APIs in Java files: Eclipse LSP4Jakarta, the Language Server for Jakarta EE.
- MicroProfile APIs in
microprofile-config.properties
and Java files: Eclipse LSP4MP, the Language Server for MicroProfile.
- Install Liberty Tools from the JetBrains Marketplace.
- Select a project in the Liberty tool window to view the available commands.
Projects with the Liberty Maven Plugin or Liberty Gradle Plugin configured will appear in the Liberty tool window on the sidebar. If the tool window is not enabled by default, you can view it by selecting View > Tool Windows > Liberty.
For minimum requirements information and detailed instructions on how to use the Liberty actions, check out the Liberty Tools for IntelliJ IDEA user guide page.
The following actions are available when you select a project in the Liberty Tool Window.
Action | Description |
---|---|
Start | Start dev mode. |
Start… | Open the Run Configurations dialog to customize and start dev mode. Supported parameters can be found in the documentation for the dev goal of the Liberty Maven Plugin and the libertyDev task of the Liberty Gradle Plugin. |
Start in a container | Start dev mode with Liberty running in a container. The liberty-maven-plugin must be version 3.3-M1 or higher. The liberty-gradle-plugin must be version 3.1-M1 or higher. |
Stop | Stop dev mode. Liberty must be running in dev mode to use this command. |
Run tests | Run the unit tests and integration tests that are configured for your project. Liberty must be running in dev mode to use this command. |
View integration test report (Maven) | View the integration test report file if it exists at /target/site/failsafe-report.html . |
View unit test report (Maven) | View the unit test report file if it exists at /target/site/surefire-report.html . |
View test report (Gradle) | Open the test report file, if it exists at the build/reports/tests/test/index.html default location. This action command is available only to Gradle projects. Gradle projects have only a single action command for test result reporting. |
Liberty Tools for IntelliJ IDEA honours the following external settings:
- Maven home path set in the Preferences > Build, Execution, Deployment > Build Tools > Maven window when running Liberty dev mode on Maven projects.
- Gradle JVM set in the Preferences > Build, Execution, Deployment > Build Tools > Gradle window when running Liberty dev mode on Gradle projects.
Starting with the Liberty Tools for IntelliJ IDEA 0.0.8 release, IntelliJ IDEA version 2022.2 is required. Liberty Tools for IntelliJ IDEA is compatible with the Community Edition of IntelliJ IDEA.
See the DEVELOPING and CONTRIBUTING documents for more details.
Please report bugs, issues and feature requests by creating a GitHub issue.