IntelliJ IDEA – Cannot connect to the Maven process

In the IntelliJ IDEA, clicks on the download sources, and it shows the error Cannot connect to the Maven process. Terminal Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA Tested with IntelliJ IDEA 2022.2.1 (Community Edition) Build #IC-222.3739.54, built on …

Read more

Python support in IntelliJ IDEA

This article shows you how to make IntelliJ IDEA support and run Python. P.S Make sure Python SDK is installed, later we need to link this Python SDK to IntelliJ IDEA. 1. Plugins In IntelliJ IDEA. File -> Settings -> Plugins. 2. Python Community Edition Clicks Marketplace, search python, install the Python Community Edition by …

Read more

How to generate serialVersionUID in Intellij IDEA

In IntelliJ IDEA, we need to enable this auto-generate serialVersionUID option manually. P.S Tested with IntelliJ IDEA 2019.3.4, it should work the same in other versions. Intellij IDEA Settings File -> Settings -> Editor -> Inspections -> Java -> Serialization issues: Find serialization class without serialVersionUID and check it. Back to the editor, clicks on …

Read more

How to change the IntelliJ IDEA JDK version?

This article shows you how to update the IntelliJ IDEA to use the new JDK 13. 1. On the menu, clicks File -> Project Structure 2. Platform Settings -> SDKs, add and point to the JDK 13 installed folder. 3. Project Settings -> Project, change both Project SDK and Project language level to JDK 13. …

Read more

IntelliJ IDEA – How to know this class belongs to which JAR

For example, how to find out this FileUploadBase class belongs to which JAR or dependency? //… import org.apache.tomcat.util.http.fileupload.FileUploadBase; @ExceptionHandler(FileUploadBase.FileSizeLimitExceededException.class) public String handleError3(Exception e, RedirectAttributes redirectAttributes) { redirectAttributes.addFlashAttribute("message", e.getCause().getMessage()); return "redirect:/uploadStatus"; } Solution In IntelliJ IDEA, double clicks on the class name and press CTRL + n (win/*nix) or CMD + n (mac) to prompt out …

Read more

Intellij + Infinitest Continuous Testing

The Infinitest is a continuous testing plugin, it helps to run the test automatically. 1. Install on IntelliJ 1.1 In Plugins, clicks on the “Browse repositories…” 1.2 Type “Infinitest” and clicks on the “Install” button. 1.3 Restart the Intellij IDEA. 2. Add Infinitest facet In the project structure / settings, add a “Infinitest” facet. 3. …

Read more

Intellij IDEA – How to build project automatically

By default, Intellij IDEA doesn’t compile classes automatically. But, you can enable the auto compile feature by following steps : In “Project settings or preferences” Select “Build, Execution, Deployment -> Compiler” Checked Make project automatically P.S This feature is available since IDEA 12 References Brand New Compiler Mode in IntelliJ IDEA 12

Intellij IDEA – Auto reload a web application (hot deploy)

In this tutorial, we will show you how to ‘hot deploy’ or ‘hot swap’ a web application in IDEA. Note Tested with Intellij IDEA 14 and 15 1. Select exploded WAR Go Run –>> Edit Configurations –>> “Deployment” tab, clicks + icon –>> select an “exploded artifact” 2. Update classes and resources Select “Server” tab, …

Read more