Atlassian Confluence repository and authority connector for Apache ManifoldCF
svn co http://svn.apache.org/repos/asf/manifoldcf/trunk/ manifoldcf
cd manifoldcf
mvn clean install -DskipTests -Dmaven.test.skip
cd -
git clone https://github.com/adperezmorales/confluence-manifold-connector.git
cd confluence-manifold-connector
mvn clean install -DskipTests -Dmaven.test.skip
After that, a JAR file containing both Repository and Authority connectors can be found at confluence-manifold-connector/target
Once you have the connectors built. You should copy the generated JAR file into connector-lib folder of ManifoldCF and configure both connectors in the connectors.xml file.
<authorityconnector name="Confluence" class="org.apache.manifoldcf.authorities.authorities.confluence.ConfluenceAuthorityConnector"/>
<repositoryconnector name="Confluence" class="org.apache.manifoldcf.crawler.connectors.confluence.ConfluenceRepositoryConnector"/>
The next step is to create and configure Confluence Authority and Repository connection.
To create and configure Confluence Authority Connection, follow the next steps:
- Create and configure an Authority Group
- Click on List Authority Connections and then click on Add new connection
- Fill the name and description fields
- Click on the Type tab and in the connection type box, select Confluence as type
- On the server tab, configure the Confluence instance parameters
- After that, click on Save
Note: Confluence Authority Connector is using the JSON-RPC API internally to be able to get the user space permission, because these methods have not been ported to the new REST API yet.
In order to create and configure Confluence Authority Connection, the next steps have to be followed:
- Click on List Repository Connections and then click on Add new connection
- Fill the name and description fields
- Click on the Type tab and in the connection type box, select Confluence as type. Select an Authority group if you need security for this connection
- On the server tab, configure the Confluence instance parameters 
- Click on save
Once the connection has been configured, the next stage is creating a job in order to make use of the created Confluence Repository connection
To create and configure Confluence Authority Connection, follow the next steps:
- Click on List all Jobs and then click on Add a new job
- Fill the job name
- In the Connection tab, configure the job pipeline, selecting the Confluence connection as Repository stage (1) and click on Continue
- Two new tabs appear, Spaces and Pages.
- In the Spaces tab, the Confluence spaces to be crawled can be configured. If no spaces are configured, then all the Confluence spaces will be crawled 
- The Pages tab contains page-related configuration parameters for crawling. Configure them as needed 
- Click on Save
- Execute the newly created Job