Developer Guide

Comala Publishing provides a Java API for other add-ons to extend.

Setup

Add the Comalatech Maven repository to you .m2/settings.xml file or your project pom.xml.

<repository> <id>appfire-comalatech-public</id> <url>https://nexus.appfire.com/repository/comalatech-maven-public/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository>



Add a dependency on the publishing api library to your project

Only available from Comala Publishing 2.16.0 onwards, there will always be a corresponding API library with the same version available.

<dependency> <groupId>com.comalatech</groupId> <artifactId>publishing-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency>

Using the API

Currently the API provides a range of events that can be listened to via Confluence event listeners.  This allows your add-on to take some additional action once a publishing action has taken place.

View the Java API docs.