Building your first plugin
When you have installed the Atlassian SDK, you can start building your first plugin. We will be building a new Confluence macro, which can be used to format content.
We will take a look at:
- The macro interface, which is the base of all macros
- The
xhtml-macro
module - Adding resources, such as a stylesheet, to your plugin
We will be building a macro that displays links as buttons.
Creating the plugin project
First, we have to create our plugin skeleton using the Atlassian SDK and load our new project into Eclipse.
- Open a command prompt and navigate to the location for you new plugin.
- Enter the following command to create a new Confluence plugin:
atlas-create-confluence-plugin
- When prompted, enter the following information to identify ...
Get Atlassian Confluence 5 Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.