contributor-wiki/Setup-for-IntelliJ-IDEA-IDE.md
2022-10-07 02:19:36 +00:00

1.8 KiB

Note: This assumes you have followed the Git tutorial

Initial Setup

Once you have IntelliJ installed and open, click the Open button on the top bar:

image

Navigate to the folder you cloned your fork to, select the 2009scape folder, and then click ok on the bottom.

If IntelliJ prompts you to trust the project, say that you trust it and let it finish opening.

Once it has finished opening, find the file browser on the left:

image

Navigate to the "Server" folder inside the file browser, and locate pom.xml:

image

Right click this, and click Add as Maven Project:

image

This might take a while, just let it do its thing for a moment.

Now select the Maven tab on the top right corner of the screen:

image

Expand the server -> Plugins -> exec tabs:

image

Right click the exec:java task, and click Modify Run Configuration:

image

Click modify options, and then click Add before launch task

image

Select Run Maven Goal

image

Put compile in the Command Line section, and press Ok

image

Now click apply, and then ok

Now you can select the run configuration in the top right, and press the green play button to build and run the project:

image