Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the latest <jira.version> in pom.xml

AkiraT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2018

I am now using JIRA 7.11.1 and developing a plugin.

I want to know the latest value for <jira.version> in pom.xml.

2 answers

1 vote
Moses Thomas
Community Champion
August 2, 2018

@AkiraT

 Even  if  you  don't understand how Maven  works!,  

You should set the jira.version property to the exact version of jira that you wish to run using the SDK in the pom.xml . This property determines which version of jira is started when you use the 'atlas-run' command and also determines which version of the Jira is linked to when compiling your plugin.

Further explanation

When  you execute atlas-create-jira-plugin, firstly  maven  will  generate a default pom.xml file with a jira version under properties which depends on the  AMPS and the Atlassian SDK versions.

(If you intend to  use active objects you will  have to  add  active  objects version in  properties and add dependency below other wise your plugin  will  not work)

 

Add  dependency  for active objects should look like this exactly

<dependency>

<groupId>com.atlassian.activeobjects</groupId>

<artifactId>activeobjects-plugin</artifactId>

<version>${ao.version}</version>

<scope>provided</scope>

</dependency>
Modify properties

<properties>

<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>

<jira.version>7.4.3</jira.version>

<amps.version>6.3.13</amps.version>

<atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>

<spring.version>4.1.6.RELEASE</spring.version>

<ao.version>1.4.0</ao.version>

<slf4j.version>1.7.9</slf4j.version>

<velocity.htmlsafe.version>1.4</velocity.htmlsafe.version>

<maven.compiler.source>1.8</maven.compiler.source>

<maven.compiler.target>1.8</maven.compiler.target>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.test.skip>true</maven.test.skip>

</properties>

 

You will need to change your Jira version which was created by default to your version

The amps.version property is only used in your development environment, and control which version of the Plugin SDK maven components will be used. You generally don't need to change these unless you are upgrading the version of the Plugin SDK you are using.

AO (Active objects version you will need to change to the version that will be compatible with your Jira instance very important other wise you will have problems.) to change you will need to use your intuition (such a pity that they did not add the versions compatible for Jira instance)

Here is a link that shows all version https://mvnrepository.com/artifact/com.atlassian.activeobjects/activeobjects-plugin?repo=atlassian-public

After changing it when you do execute atlas-run command, the activeobjects-plugin-1.5.0.jar file should be created in the atlassian-buldled-plugin folder in your server.

All should be well if you follow right steps to create a plugin.

 

I think this explanation is clear!

Best!

0 votes
Nic Brough -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.
August 2, 2018

7.11.1 - the pom should contain the version you are writing for.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events