pom.xml setup for confluence 7.x.x
Asked by Abdurashid Vakhobov:

Hi All,

Can someone help me with setting up pom.xml. Below is format:

```
<properties>
    <confluence.version>7.x.x</confluence.version>
    <confluence.data.version>?.?.?</confluence.data.version>
    <amps.version>?.?.?</amps.version>
    <ao.version>?.?.?</ao.version>
</properties>
```


Answers:
author: David at David Simpson Apps
body: I've had this same problem today. I'll tell you how to work this out first, then I'll show you what worked for me.

As it's been a while, I did an...

```
atlas-update
```

which gave me the latest version of amps (8.0.2):

```
$ atlas-version

ATLAS Version:    8.0.16
ATLAS Home:       /path/to/libexec
ATLAS Scripts:    /path/to/libexec/bin
ATLAS Maven Home: /path/to/libexec/apache-maven-3.5.4
AMPS Version:     8.0.2
--------
[INFO] Project POM found
Executing: /path/to/libexec/apache-maven-3.5.4/bin/mvn --version -gs /path/to/libexec/apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T19:33:14+01:00)
Maven home: **********
Java version: 1.8.0_162, vendor: Oracle Corporation, runtime: ******
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
```

<br />

<br />

? Initially, I used this (it didn't work):

```
<confluence.version>7.0.1</confluence.version>
<confluence.data.version>7.0</confluence.data.version>
<amps.version>8.0.2</amps.version>
```

I got the following stack trace:

```
[INFO] Starting confluence...
[INFO] Configured Artifact: com.atlassian.confluence.plugins:confluence-plugin-test-resources:7.0:zip
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/atlassian/confluence/plugins/confluence-plugin-test-resources/7.0/confluence-plugin-test-resources-7.0.pom
...
[WARNING] The POM for com.atlassian.confluence.plugins:confluence-plugin-test-resources:zip:7.0 is missing, no dependency information available
```

This means that whatever versions *are* available will be in a subdirectory under:  
<https://maven.atlassian.com/repository/public/com/atlassian/confluence/plugins/confluence-plugin-test-resources/>

Man, there's *a lot of versions* there, but I at least saw **7.0.1** , **7.0.2** and newer versions too.  

? So, I'm now using:

```
<confluence.version>7.0.1</confluence.version>
<confluence.data.version>7.0.1</confluence.data.version>
<amps.version>8.0.2</amps.version>
```

For the AO version, I'd grab a copy of the Confluence source code and see what version they are using.  

The versions are all available here:  
<https://packages.atlassian.com/content/repositories/atlassian-public/com/atlassian/activeobjects/activeobjects-plugin/>  

**Active Objects 3.1.7** seems to be the latest.


author: Abdurashid Vakhobov
body: Hi [@PVS](/t5/user/viewprofilepage/user-id/1891002) ,

My actual question is what is compatible version for confluence version 7.

At the moment I am not able to even package the add-on.


author: PVS
body: Hi [@Abdurashid Vakhobov](/t5/user/viewprofilepage/user-id/3128516)

Go Through This Link Helps to you.

<https://developer.atlassian.com/server/framework/atlassian-sdk/working-with-the-pom/>

<https://github.com/structurizr/atlassian-confluence/blob/master/pom.xml>

Thanks,

PVS


Tags: confluence-server

server