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

JIRA TestKit dependencies

Richard Simko [RefinedWiki] August 3, 2015

I'm trying to figure out how to use TestKit for JIRA however I seem to be having some issues with dependencies. No matter how I set it up the following log always comes out:

Aug 04, 2015 10:29:54 AM com.sun.jersey.spi.inject.Errors processErrorMessages
SEVERE: The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: com.sun.jersey.api.core.HttpContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.hc
  SEVERE: Missing dependency for field: javax.ws.rs.core.UriInfo com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.ui
  SEVERE: Missing dependency for field: com.sun.jersey.spi.template.TemplateContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.tc
. Checking that JIRA is setup and ready to be tested...
. JIRA is setup and 'admin' is logged in. !! ALL YOUR PERMGEN DELONG TO US !!
Aug 04, 2015 10:29:54 AM com.sun.jersey.spi.inject.Errors processErrorMessages
SEVERE: The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: com.sun.jersey.api.core.HttpContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.hc
  SEVERE: Missing dependency for field: javax.ws.rs.core.UriInfo com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.ui
  SEVERE: Missing dependency for field: com.sun.jersey.spi.template.TemplateContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.tc
	. failed to disable onboarding 
	. com.sun.jersey.spi.inject.Errors$ErrorMessagesException

Is there something I should be adding to my POM which I'm missing? The documentation for this seems horribly out of date. I've followed Atlassian's guide and also added the dependency mentioned in the comment so the relevant sections of my POM look like this:

<dependency>
    <groupId>com.atlassian.jira.tests</groupId>
    <artifactId>jira-testkit-client</artifactId>
    <version>${testkit.version}</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-func-tests</artifactId>
    <version>${jira.version}</version>
    <scope>test</scope>
</dependency>
 
<pluginArtifacts>
    <pluginArtifact>
        <groupId>com.atlassian.jira.tests</groupId>
        <artifactId>jira-testkit-plugin</artifactId>
        <version>${testkit.version}</version>
    </pluginArtifact>
</pluginArtifacts>
 
<testkit.version>6.4.42</testkit.version>

 

I also had to add the Atlassian Maven Repo (Which wasn't mentioned in the docs)

<repository>
    <id>atlassian-public</id>
    <url>https://maven.atlassian.com/repository/public</url>
    <snapshots>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
    </snapshots>
    <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
    </releases>
</repository>

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Richard Simko [RefinedWiki] August 5, 2015

I solved this by adding the following dependency

<dependency>
    <groupId>com.sun.jersey</groupId>
    <artifactId>jersey-server</artifactId>
    <version>1.8-atlassian-8</version>
    <scope>test</scope>
</dependency>
Jeremy Jao June 28, 2016

This worked for me, also. Thank you!

Tomasz Stec
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.
December 22, 2016

Worked for me also, but how did you know jersey-server is the one missing ?

Richard Simko [RefinedWiki] December 27, 2016

Honestly I can't remember any more. Probably a combination of intuition, error messages, a lot of Googling and a fair bit of guesswork wink

The error messages in my question refer to jersey so I think I just made a search for that in the pre-configured Maven repositories (Using IntelliJs autocomplete) and this is what it came up with.

TAGS
AUG Leaders

Atlassian Community Events