I'm trying to build my plugin with JIRA 6.0 or 6.0.1
In pom.xml I have
<properties> <amps.version>3.10.1</amps.version> <jira.version>6.0.1</jira.version> <jira.data.version>6.0.1</jira.data.version> <upm.license.compatibility.version>2.2.2</upm.license.compatibility.version> <sal.api.version>2.4.0</sal.api.version> <atlassian.templaterenderer.version>1.0.5</atlassian.templaterenderer.version> </properties>
But I get the following error.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo
Embedded error: Missing:
----------
1) com.atlassian.jira:atlassian-jira:jar:6.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.atlassian.jira -DartifactId=atlassian-jira -Dversion=6.0 -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 -DartifactId=atlassian-jira -Dversion=6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
It works for if in XML I put 6.0-rc1. But I don't want RC1... Any idea?
Thank you!
atlassian-jira dependency is discontinued. Use jira-api and/or jira-core dependencies.
<dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-api</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. --> <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x --> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-core</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency>
Thanks Jobin Kuruvilla!! I was wrestling with the atlassian-JIRA reference and found this. Replacing atlassian-JIRA with your dependencies above solved my problem!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jobin,
I also have this Unresolved dependency on the import com.atlassian.jira.web.action.createIssueDetails; class
Adding the dependecny in the POM did not resolve it, how do I proceed?
Kind Regards
Lars Broden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.