It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

atlassian plugin sdk 4.2 fails to build on activating testkit plugin

Hello. Im trying to get my feet into integration testing of jira 5.2 plugins. I am running SDK 4.2 on Open JDK 6. Everything seems to be set up correctly. I can build and run my own jira 5.2 plugins. Now i have a couple of plugins finished and want to write integration tests for them. Therefore i have followed these instructions.

So if i get it right, the first step would be to activate testkit backdoor in the pom. My pom, which was created by sdk and modified by myself, already contained all needed entries and properties to use the testkit. All i had to do is to uncomment it.

<!-- Uncomment to use TestKit in your project. Details at -->
<!-- You can read more about TestKit at -->
<!-- Uncomment to install TestKit backdoor in JIRA. -->

<!-- TestKit version 5.x for JIRA 5.x, 6.x for JIRA 6.x -->

Now it seems that maven cannot resolve the dependency for the testkit. Im getting the following output on atlas-run

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

1) com.atlassian.jira.tests:jira-testkit-client:jar:5.2.26

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.atlassian.jira.tests -DartifactId=jira-testkit-client -Dversion=5.2.26 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.atlassian.jira.tests -DartifactId=jira-testkit-client -Dversion=5.2.26 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) com.bssnsoftware.jira.plugin:vip-fields-plugin:atlassian-plugin:1.0-SNAPSHOT
  	2) com.atlassian.jira.tests:jira-testkit-client:jar:5.2.26

1 required artifact is missing.

for artifact: 

from the specified remote repositories:
  atlassian-plugin-sdk (file:///usr/share/atlassian-plugin-sdk-4.2.0/repository),
  central (,
  atlassian-public (

This is the output of atlas-version

ATLAS Version:    4.2.0
ATLAS Home:       /usr/share/atlassian-plugin-sdk-4.2.0
ATLAS Scripts:    /usr/share/atlassian-plugin-sdk-4.2.0/bin
ATLAS Maven Home: /usr/share/atlassian-plugin-sdk-4.2.0/apache-maven
Executing: /usr/share/atlassian-plugin-sdk-4.2.0/apache-maven/bin/mvn --version -gs /usr/share/atlassian-plugin-sdk-4.2.0/apache-maven/conf/settings.xml
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.6.0_27
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "3.8.0-22-generic" arch: "amd64" Family: "unix"

I am not very familiar with maven and dont know much about how it resolves dependecies. Usualy i have just added dependencies that i needed to the pom and didnt care where the ressources actualy came from. However, this time it seems maven fails to find the ressource that i need.

ps: Ive figured that i cannot access from the browser.

3 answers

1 accepted

0 votes
Answer accepted

Fixed it.

The problem was in wrong testkit-client version. In my pom i have changed

<testkit.version>5.2.26</testkit.version> in <testkit.version>5.0.27</testkit.version>.

5.2.26 is set by SDK. I have trusted that this was a valid version for atlassian testkit. Checked the atlassian public repository and couldnt find this version there. So decided to pick any version that was present in repository. That fixed the problem.

One more thing to mention. You must have an empty xml folder in your src/test folder if you are using "atlas-integration-test"

didn't work for me...

correction. i can actualy access that repository from browser. was a typo.

This is what ive found in default .m2/repository

alexej@Alexej-Laptop:~/.m2/repository/com/atlassian/jira/tests/jira-testkit-client/5.2.26$ cat jira-testkit-client-5.2.26.pom.lastUpdated 
#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Wed May 29 09:14:20 CEST 2013
file\://${env.ATLAS_HOME}/repository/.error=Could not transfer artifact com.atlassian.jira.tests\:jira-testkit-client\:pom\:5.2.26 from/to atlassian-plugin-sdk (file\://${env.ATLAS_HOME}/repository)\: Repository path /repository does not exist, and cannot be created.


What does it mean? I have no $env.ATLAS_HOME set. Just $ATLAS_HOME which i used to set manually.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 3 hours ago in Jira

Upcoming Enterprise releases targeting Q3 2019: Jira Software 8.5 & Jira Service Desk 4.5

Since launching the Jira Software 8.0 and Jira Service Desk 4.0 platform releases in February, many of you have been asking when the next Enterprise release will be so you can take advantage of the m...

161 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you