Last updated Feb 19, 2024

Fisheye and Crucible Development : 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:

1
2
$ 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

1
2
<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 ) :

1
2
<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:

1
2
$ atlas-mvn -version | grep Java

slf4j dependency

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

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

Rate this page: