Stage 1: Create plugin structure

For more detail on the initial setup of the SDK, and the first steps below, see Developing with the Atlassian Plugin SDK.

Skeleton

First, create your plugin skeleton:

$ atlas-create-fecru-plugin
...
Define value for groupId: : com.example.ampstutorial
Define value for artifactId: : fecrutwitter
Define value for version:  1.0-SNAPSHOT: :               # just accept the default
Define value for package:  com.example.ampstutorial: :   # again, just press enter for the default

Fisheye/Crucible version

atlas-create-fecru-plugin might create a skeleton with a different version of Fisheye/Crucible than you want to use. Update the properties in pom.xml

<properties>
	<fecru.version>3.9.0-20150804094455</fecru.version>
	<fecru.data.version>3.9.0-20150804094455</fecru.data.version>
	<amps.version>5.1.18</amps.version>
	...
</properties>

Java version

Update to use Java 8  (also in  pom.xml ) :

<plugin>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<source>1.8</source>
		<target>1.8</target>
	</configuration>
</plugin>

To make sure your maven uses the correct Java version run:

$ atlas-mvn -version | grep Java

slf4j dependency

Fix the following dependency (also in pom.xml):

<dependency>
	<groupId>org.slf4j</groupId>
	<artifactId>slf4j-api</artifactId>
	<version>1.5.8</version>
    <scope>provided</scope>
</dependency>

 

 

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport