Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Atlassian Confluence 5 Essentials

You're reading from   Atlassian Confluence 5 Essentials Centralize all your organization's documentation in one place using Confluence. From installation to using add-ons, this is a complete, user-friendly tutorial that assumes virtually no prior knowledge.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781849689526
Length 334 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Stefan Kohler Stefan Kohler
Author Profile Icon Stefan Kohler
Stefan Kohler
Arrow right icon
View More author details
Toc

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.

  1. Open a command prompt and navigate to the location for you new plugin.

  2. Enter the following command to create a new Confluence plugin:

    atlas-create-confluence-plugin
    
  3. When prompted, enter the following information to identify your plugin:

    groupId

    com.example.confluence

    artifactId

    button-macro

    version

    1.0-snapshot

    package

    com.example.confluence.button

  4. Confirm your entries when prompted.

  5. Start Eclipse.

  6. Select File | Import... from the Eclipse menu...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image