How to build plugin on JIRA 6.0?

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

This widget could not be displayed.

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>

This widget could not be displayed.

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


This widget could not be displayed.

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!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

524 views 3 19
Read article

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