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

2 votes

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>

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


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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

364 views 0 6
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