Skip to content

Commit 62e1f6f

Browse files
tweak IntelliJ instructions for setting up fast redeploy (#11925)
Co-authored-by: Steven Winship <[email protected]>
1 parent 1ba6926 commit 62e1f6f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

doc/sphinx-guides/source/container/dev-usage.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ Hotswapping methods requires using JDWP (Debug Mode), but does not allow switchi
233233
**Requires IntelliJ Ultimate!**
234234
(Note that `free educational licenses <https://www.jetbrains.com/community/education/>`_ are available)
235235

236+
Go to settings, then plugins. Install "Payara Ultimate Tools". For more information:
237+
238+
- `plugin homepage <https://plugins.jetbrains.com/plugin/15114-payara-ultimate-tools>`_
239+
- `docs <https://docs.payara.fish/community/docs/Technical%20Documentation/Ecosystem/IDE%20Integration/IntelliJ%20Plugin/Overview.html>`_
240+
- `source <https://github.com/payara/ecosystem-intellij-plugin>`_
241+
- `issues <https://github.com/payara/ecosystem-support>`_
242+
236243
.. image:: img/intellij-payara-plugin-install.png
237244

238245
#. Configure a connection to Payara:
@@ -284,6 +291,7 @@ Hotswapping methods requires using JDWP (Debug Mode), but does not allow switchi
284291

285292
You might want to tweak the hot deploy behavior in the "Server" tab now.
286293
"Update action" can be found in the run window (see below).
294+
By default it is "Hot Swap classes", which works fine, but as the screenshot shows you can also change it to "Redeploy".
287295
"Frame deactivation" means switching from IntelliJ window to something else, e.g. your browser.
288296
*Note: static resources like properties, XHTML etc will only update when redeploying!*
289297

@@ -305,7 +313,11 @@ Hotswapping methods requires using JDWP (Debug Mode), but does not allow switchi
305313
See cheat sheet above for more options.
306314
Note that this command either assumes you built the :doc:`app-image` first or will download it from Docker Hub.
307315
.. group-tab:: IntelliJ
308-
You can create a service configuration to automatically start services for you.
316+
Note that you can skip this step if you're ok running the command under the "Maven" tab, which is this:
317+
318+
``mvn -Pct docker:run -Dapp.skipDeploy``
319+
320+
In IntelliJ you can create a service configuration to automatically start services for you.
309321

310322
**IMPORTANT**: This requires installation of the `Docker plugin <https://plugins.jetbrains.com/plugin/7724-docker>`_.
311323

@@ -362,7 +374,7 @@ Hotswapping methods requires using JDWP (Debug Mode), but does not allow switchi
362374

363375
.. image:: img/intellij-payara-run-output.png
364376

365-
Manually hotswap classes in "Debug" mode via "Run" > "Debugging Actions" > "Reload Changed Classes".
377+
Manually hotswap classes in "Debug" mode via "Run" > "Debugging Actions" > "Compile and Reload Modified Files".
366378

367379
.. image:: img/intellij-payara-run-menu-reload.png
368380

0 commit comments

Comments
 (0)