Payara Tools for VS CodeEcosystem Plugin SupportSupport for the VS Code IDE Payara Tools plugin is handled in the Ecosystem Support Repository VS Code Payara Tools DocumentationFull documentation for the configuration and usage of the VS Code Payara Tools plugin can be found in the technical documentation Customizing Build CommandsThe extension uses default Maven/Gradle commands for each action. You can override any command by adding a matching task to your project's How to overrideCreate or edit
Available task labelsPayara Server Maven Plugin (
|
| Label | Default command |
|---|---|
payara-server-maven-start |
mvn package fish.payara.maven.plugins:payara-server-maven-plugin:start |
payara-server-maven-dev |
mvn package fish.payara.maven.plugins:payara-server-maven-plugin:dev |
payara-server-maven-stop |
mvn fish.payara.maven.plugins:payara-server-maven-plugin:stop |
Payara Micro Maven Plugin (payara-micro-maven-plugin)
| Label | Default command |
|---|---|
payara-micro-exploded-war-start |
mvn resources:resources compiler:compile war:exploded … payara-micro-maven-plugin:start |
payara-micro-uber-jar-start |
mvn install … payara-micro-maven-plugin:bundle payara-micro-maven-plugin:start |
payara-micro-dev |
mvn fish.payara.maven.plugins:payara-micro-maven-plugin:dev |
payara-micro-reload |
mvn resources:resources compiler:compile war:exploded … payara-micro-maven-plugin:reload |
payara-micro-stop |
mvn fish.payara.maven.plugins:payara-micro-maven-plugin:stop |
payara-micro-bundle |
mvn install … payara-micro-maven-plugin:bundle |
Payara Server (traditional deployment)
| Label | Default command |
|---|---|
payara-server-build |
mvn resources:resources compiler:compile war:war (remote) or war:exploded (local) |
Configuring the Debug Port
When you click Start in Debug Mode or Start (Dev Mode) in Debug, the extension attaches the VS Code Java debugger to the running server. The debug port defaults to 5005 for Payara Server Maven and Payara Micro.
On the first debug launch the extension automatically creates a configuration entry in .vscode/launch.json. To use a different port, edit that entry:
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "payara-server-maven",
"hostName": "localhost",
"port": 8000
},
{
"type": "java",
"request": "attach",
"name": "payara-micro",
"hostName": "localhost",
"port": 8000
}
]
}
The extension matches the configuration by name, so keep the name unchanged (payara-server-maven or payara-micro). Only the port (and optionally hostName) need to be adjusted.