Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using the 'copy space'plugin from my plugin

Steve Loft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2013

I would like to use the Copy Space plugin in a plugin that I am developing. I have installed version 2.3 of the plugin into my local Confluence 5.1 installation created by the SDK, and added the following to my pom.xml:

<dependency>
			<groupId>com.atlassian.confluence.plugin</groupId>
			<artifactId>confluence-copyspace-plugin</artifactId>
			<version>2.3</version>
			<scope>provided</scope>
		</dependency>

and the following to my atlassian-plugin:

<component-import key="com.atlassian.confluence.plugin.copyspace.copySpaceManager">
        <interface>com.atlassian.confluence.plugin.copyspace.CopySpaceManager</interface>
    </component-import>

But when I do 'atlas-run', I get an 'unresolved constraint' error:

Unable to resolve 151.0: missing requirement [151.0] package; (package=com.atlassian.confluence.plugin.copyspace). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D

Could someone please tell me what I am doing wrong? The URL in the error message doesn't work, by the way.

Steve

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Steve Loft
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2013

I simply had to add "--plugins com.atlassian.confluence.plugin:confluence-copyspace-plugin:2.3" to my atlas-run call.

Steve

TAGS
AUG Leaders

Atlassian Community Events