Setting up IDEA for plugin development is a breeze. Simply create a plugin project using the atlas-create-*-plugin
command (for example, atlas-create-confluence-plugin) and then load the project's POM file into IntelliJ. IntelliJ's Maven integration will generate the appropriate project files for you.
While it's possible to run the Atlassian Plugin SDK commands from within IDEA as custom run commands, in practice, most developers simply use IDEA for code editing and debugging, and use a separate console to run the atlas-run
, atlas-debug
, or other Atlassian Plugin SDK command. After you've made project changes with the SDK, IDEA will detect the file changes on disk and prompt you to reimport the project.
After starting the Atlassian application, you can connect to it from IDEA for debugging on the default debug port 5005, as described in Creating a Remote Debug Target.
To load the plugin project in IDEA:
pom.xml
file. /usr/lib/jdk/jdk-1-6
. (To see what the SDK uses for its Java home, enter the atlas-version
command and look for the Java home indicated in the output of the command.You may find it beneficial to increase the default amount of memory allocated for IDEA. You can do this by modifying the VM options located in:
1 2<Install-dir>\bin\idea.exe.vmoptions
1 2<Install-dir>\bin\idea.vmoptions
1 2/Applications/IntelliJ\ IDEA\ 9.0.4.app/Contents/Info.plist
For example, if you installed the application in it's default location on Windows you may see something like this:
1 2C:\Program Files\JetBrains\IntelliJ IDEA 9.0.4\bin\idea.exe.vmoptions
Here are sample settings:
1 2-Xms32m -Xmx256m -XX:MaxPermSize=128m -ea
Rate this page: