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>
Community moderators have prevented the ability to post new answers.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked for me also, but how did you know jersey-server is the one missing ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Honestly I can't remember any more. Probably a combination of intuition, error messages, a lot of Googling and a fair bit of guesswork
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.