# Dependency error compiling AMPS

**URL:** <https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256>\
**Category:** Atlassian Developer Tools\
**Tags:** amps, plugin, maven, plugin-development\
**Created:** [July 17, 2023, 12:52pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256 "2023-07-17T12:52:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarylOlson](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DarylOlson](https://community.developer.atlassian.com/u/DarylOlson)\
**Post date:** [July 17, 2023, 12:52pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/1 "2023-07-17T12:52:20Z")

</div>

I’m trying to compile AMPS 8.10.x that I cloned from bitbucket and am getting the following dependency error:

> [ERROR] Failed to execute goal on project amps-maven-plugin: Could not resolve dependencies for project com.atlassian.maven.plugins:amps-maven-plugin:maven-plugin:8.11.0-SNAPSHOT: The following artifacts could not be resolved: com.oracle.jdbc:ojdbc8:jar:12.2.0.1 (absent): com.oracle.jdbc:ojdbc8:jar:12.2.0.1 was not found in [Index of maven-external/](https://packages.atlassian.com/maven-external/) during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of atlassian-public2 has elapsed or updates are forced

What do I need to add to my maven settings.xml file in order to compile the plugin suite?

---

<div class="post-metadata">

**Author:** ![VadymKovalskiy](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@VadymKovalskiy](https://community.developer.atlassian.com/u/VadymKovalskiy)\
**Post date:** [July 26, 2023, 12:00pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/2 "2023-07-26T12:00:46Z")

</div>

Hi there! Could you please fetch latest master and try one more time?

---

<div class="post-metadata">

**Author:** ![DarylOlson](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DarylOlson](https://community.developer.atlassian.com/u/DarylOlson)\
**Post date:** [July 27, 2023, 12:01pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/3 "2023-07-27T12:01:40Z")

</div>

It built fine this time but it creates a missing dependency. In jira-maven-plugin-8.11.1-SNAPSHOT.pom it has:

```xml
<artifacts>
    <!-- Artifacts from atlassian-restricted are not available when maven-invoker-plugin
           runs Maven, so they need to be copied over. Jira uses jta:jta -->
     <artifact>jta:jta:1.0.1</artifact>
</artifacts>

```

That version isn’t in your repository. The only one there is 1.0.1b.

Also

```auto
com/atlassian/jira/jira-project/7.13.0/jira-project-7.13.0.pom
com/atlassian/ofbiz/entityengine-parent/1.3.10/entityengine-parent-1.3.10.pom
com/atlassian/ofbiz/entityengine-parent/1.2.2/entityengine-parent-1.2.2.pom

```

Reference the missing version as well

---

<div class="post-metadata">

**Author:** ![YevhenKarnaukhov](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@YevhenKarnaukhov](https://community.developer.atlassian.com/u/YevhenKarnaukhov)\
**Post date:** [August 2, 2023, 2:49pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/4 "2023-08-02T14:49:42Z")

</div>

Hello, we fixed the restricted `jta` library from `jira-maven-plugin`, could you please fetch the last changes from the master branch and try again?

---

<div class="post-metadata">

**Author:** ![DarylOlson](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DarylOlson](https://community.developer.atlassian.com/u/DarylOlson)\
**Post date:** [August 3, 2023, 1:03pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/5 "2023-08-03T13:03:20Z")

</div>

That resolves the dependency in AMPS. I am still running into issues compiling plugins after building AMPS because there are still unresolved jta dependencies in the artifacts in your maven repository.

For the plugin I am trying to compile these are in jira-project and entityengine-parent. I tried a version as recent as jira-project-8.22.6 and it still has version 1.0.1 in the .pom file. entityengine-parent (not sure what artifact needs entityengine) has the same. If I edit those poms in .m2/repository to point to 1.0.1b, my plugin compiles fine.

---

<div class="post-metadata">

**Author:** ![YevhenKarnaukhov](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@YevhenKarnaukhov](https://community.developer.atlassian.com/u/YevhenKarnaukhov)\
**Post date:** [August 3, 2023, 1:35pm UTC](https://community.developer.atlassian.com/t/dependency-error-compiling-amps/71256/6 "2023-08-03T13:35:08Z")

</div>

We replaced restricted `jta` to `javax.transactions` in entity-engine 3.0.9 and Jira 9.11-SNAPSHOT, so the previous versions still have restricted dependency, maybe we can backport changes, what version of Jira you planned to use?
