Atlassian has documented the steps required for making a plugin, but these steps are so packed with auxilliary information that they can be a little cumbersome. For those already generally familiar with the process for Eclipse, here is a slimmed-down checklist in five easy steps.

  1. Setup your environment
  2. Create a folder in your Eclipse workspace
  3. Create a project structure using Maven archetype
  4. Convert project structure to Eclipse project
  5. Import Eclipse project into IDE

Setup your environment

If you haven't already done so, setup your environment (Java, Maven, Atlassian Maven PDK, Eclipse). You can get some tips here:

http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Plugin

Create a folder in your Eclipse workspace

Create a new folder for your project in your eclipse workspace. Do this through the file system, not through Eclipse!

Create a project structure using Maven archetype

Enter the folder and execute the following command (replace MY_PACKAGE and MY_PLUGIN).

mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=com.atlassian.maven.archetypes -DarchetypeArtifactId=confluence-plugin-archetype -DarchetypeVersion=11 -DremoteRepositories=https://maven.atlassian.com/repository/public/ -DgroupId=MY_PACKAGE -DartifactId=MY_PLUGIN

Convert project structure to Eclipse project

After successful build, cd into the project root folder that was just created one level below the new folder you just created and execute the following command:

mvn eclipse:eclipse

This will convert your project setup to an Eclipse project.

Import Eclipse project into IDE

Now in Eclipse, import > Existing projects into workspace and select the project root folder.

You're ready to go!



There are currently no attachments on this page.

Labels:

Enter labels to add to this page:
Wait Image 
Tip: Looking for a label? Just start typing.