IntelliJ IDEA
Running a Quarkus module from JetBrains IntelliJ IDEA takes four steps.
1. Open the project
Open the pom.xml of the repository from the welcome screen. IntelliJ IDEA imports it as a Maven
project.
2. Install the Quarkus plugin
- Go to File > Settings > Plugins (Preferences on macOS).
- Search for "Quarkus" and install the plugin.
- Restart the IDE if asked.
3. Create a run configuration
- Open the drop-down next to the run icon and choose Edit Configurations.
- Add a configuration of type Maven.
- Give it a name, such as "Quarkus Dev", and select the module.
- Enter
quarkus:devas the command. - To set the port, add
-Dquarkus.http.port=8090.
4. Run
Select the configuration and click Run. Quarkus starts in development mode: code changes are applied without restarting.
The same can be done from the built-in terminal:
./mvnw quarkus:dev
If it does not start
| Symptom | What to check |
|---|---|
| Class not found | That the project is compiled and the classpath is set up correctly |
| Port already in use | Change the port in application.properties, or pass -Dquarkus.http.port=9090 |