This server will be upgraded at 3pm Sydney time on December 3rd (December 2nd, 8pm PST) and will be down for up to 30 minutes.
This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant version.

Converting Macro Libraries to Confluence Plugins

All Versions
Click for all versions
Confluence 2.9 Documentation

Index

Version Warning
This document concerns upgrading Macro libraries written for Confluence 1.1 or 1.2 to a macro plugin compatible with Confluence 1.3 or later. If you are not upgrading a Macro Library, you don't need these instructions.

XML based conversion of Macros to Plugins

From Confluence 1.3 and onwards Macros become 'Plugins.' When upgrading, the only conversion which must take place is XML based.

The example below uses the tasklist macro, which is bundled in Confluence 1.3 and used frequently in earlier versions.

From Confluence 1.3 and onwards the XML descriptor is called atlassian-plugin.xml used in Confluence 1.3

<atlassian-plugin name='Task List Macros' key='confluence.extra.tasklist'>
    <plugin-info>
        <description>Macros to generate simple task lists</description>
        <vendor name="Atlassian Software Systems" url="http://www.atlassian.com"/>
        <version>1.3</version>
    </plugin-info>

    <macro name='tasklist' class='com.atlassian.confluence.extra.tasklist.TaskListMacro' key='tasklist'>
        <description>Creates a very simple task list, with user checkable tasks</description>
    </macro>
</atlassian-plugin>

In Confluence 1.2 and earlier the XML descriptor is called macro-library.xml and looks like:

<macro-libraries>
    <macro-library name="Task List Macros" key="confluence.extra.tasklist"
        description="An example macro library which generates task lists.">
        <macro name="tasklist" class="com.atlassian.confluence.extra.tasklist.TaskListMacro"
            description="Creates a very simple task list, with user checkable tasks."/>
    </macro-library>
</macro-libraries>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.