How to build plugin on JIRA 6.0?

Danut M _StonikByte_
Atlassian Partner
May 28, 2013

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!

3 answers

1 accepted

2 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
May 28, 2013

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>

0 votes
Scott Wilson March 11, 2016

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!

0 votes
Lars Broden
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.
August 7, 2014

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


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events