Cannot find artifacts either jira-internal-bom not jira-internal-api-bom for recent Jira versions

Hi there!

For the last three releases of Jira (9.15.1, 9.12.7 and 9.4.20) I’m getting a building error for my Jira plugin every time:

  • for Jira 9.15.1 it cannot resolve artifact com.atlassian.jira:jira-internal-bom:pom:9.15.1-QR-20240416094140
  • for Jira 9.12.7 – it can’t find com.atlassian.jira:jira-internal-api-bom:pom:9.12.6-QR-20240409121341
  • for Jira 9.4.20 – it can’t find com.atlassian.jira:jira-internal-api-bom:pom:9.4.19-QR-20240405111325

at the same time:

  • I can find artifacts jira-internal-bom:9.15.1, jira-internal-api-bom:9.12.7 and jira-internal-api-bom:9.4.20 on Index of maven-external/, but looks like they are not used at all which is suspiciously looking as a mistake.
  • also, for previous versions of Jira (9.15.0, 9.12.6 and 9.4.19) everything works fine.

I need help to resolve that issues. What I’m doing wrongly?

Example of output of atlas-debug command: atlas-debug output - Pastebin.com

1 Like

Hi @SeriousDen, Can you please help me on this, if you resolved it.

I am unable to download the jars using platform 7 changes

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-api-bom</artifactId>
                <version>10.0.0</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

I am unable to download this from my nexus repo, and i tried in maven repo also. But it was not available. Can you please guide me where can i download these bom files as dependencies.

Hi @DharmaTeja,

As I know, Atlassian publishes all their artifacts in https://packages.atlassian.com/, e.g. jira-api-bom-10.0.0.pom. For obvious reasons, I can’t know why you can’t download it from your nexus repo. Did you get any error messages?

Do you trying to import dependencies by importing of jira-api-bom file? Never tried to do that with jira-api-bom. I know another way with using jira-project. Try this:

  1. Firstly, import com.atlassian.jira:jira-project:10.0.0 into your project.
<project>
  <dependencyManagement>
    <dependncies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-project</artifactId>
            <version>${jira.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
...
  1. Then declare all required dependencies without indicating their versions. For example:
<project>
  <dependncies>
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-api</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
       <groupId>com.atlassian.jira</groupId>
       <artifactId>jira-tests</artifactId>
       <scope>test</scope>
    </dependency>
...

Hope it will work for you.

Hi @SeriousDen :-

Thanks for your reply and response. I will check this way and let you know once I see the progress.

Hi @SeriousDen :- I am trying to add dependencyManagement com.atlassian.jira:jira-project:10.0.0 pom . But i am unable to download the respective pom files and each time i got the error related to pom files like this

 The project ru.andreymarkelov.atlas.plugins:datacollector:2.3.0-jira10-SNAPSHOT (/Users/dharmatejakonduri/sde/development/Jira/server/issue-history-collector/pom.xml) has 1 error
[ERROR]     Non-resolvable import POM: The following artifacts could not be resolved: com.atlassian.jira:jira-deprecated-api-bom:pom:10.0.0 (absent): Could not find artifact com.atlassian.jira:jira-deprecated-api-bom:pom:10.0.0 in nexus (https://nexus.appfire.com/repository/public) @ com.atlassian.jira:jira-api-bom:10.0.0, /Users/dharmatejakonduri/sde/softwares/atlassian-plugin-sdk-9.0.2/repository/com/atlassian/jira/jira-api-bom/10.0.0/jira-api-bom-10.0.0.pom, line 1373, column 25 -> [Help 2]
[ERROR] 

After manual download of these pom files, I kept it in my local repo and then finally got the below errors, seems i am unable to download the latest jars from nexus . Seems either i should have issue with nexus or these jars are not visible from my nexus repo. Can you please suggest any thoughts on this.

[ERROR] Failed to execute goal on project datacollector: Could not resolve dependencies for project ru.andreymarkelov.atlas.plugins:datacollector:atlassian-plugin:2.3.0-jira10-SNAPSHOT
[ERROR] dependency: com.atlassian.jira:jira-core:jar:10.0.0 (provided)
[ERROR]         com.atlassian.jira:jira-core:jar:10.0.0 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.atlassian.jira:jira-api:jar:10.0.0 (provided)
[ERROR]         com.atlassian.jira:jira-api:jar:10.0.0 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.sun.jersey:jersey-server:jar:1.19.5-atlassian-17 (provided)
[ERROR]         com.sun.jersey:jersey-server:jar:1.19.5-atlassian-17 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.sun.jersey:jersey-json:jar:1.19.5-atlassian-17 (provided)
[ERROR]         com.sun.jersey:jersey-json:jar:1.19.5-atlassian-17 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: org.codehaus.jackson:jackson-mapper-asl:jar:1.9.14-atlassian-6 (provided)
[ERROR]         org.codehaus.jackson:jackson-mapper-asl:jar:1.9.14-atlassian-6 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: org.codehaus.jackson:jackson-jaxrs:jar:1.9.14-atlassian-6 (provided)
[ERROR]         org.codehaus.jackson:jackson-jaxrs:jar:1.9.14-atlassian-6 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: org.codehaus.jackson:jackson-xc:jar:1.9.14-atlassian-6 (provided)
[ERROR]         org.codehaus.jackson:jackson-xc:jar:1.9.14-atlassian-6 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.sun.jersey:jersey-core:jar:1.19.5-atlassian-17 (provided)
[ERROR]         com.sun.jersey:jersey-core:jar:1.19.5-atlassian-17 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.sun.jersey:jersey-client:jar:1.19.5-atlassian-17 (provided)
[ERROR]         com.sun.jersey:jersey-client:jar:1.19.5-atlassian-17 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.atlassian.plugins.rest:atlassian-rest-common:jar:8.0.4 (provided)
[ERROR]         com.atlassian.plugins.rest:atlassian-rest-common:jar:8.0.4 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] dependency: com.atlassian.plugins.rest:atlassian-rest-doclet:jar:8.0.4 (provided)
[ERROR]         com.atlassian.plugins.rest:atlassian-rest-doclet:jar:8.0.4 was not found in https://nexus.appfire.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

@DharmaTeja

Your app should not download dependencies from nexus.appfire.com until it’s defined by your company policy or what ever. By default, all artifacts are available at packages.atlassian.com. Please, set up repositories section in your pom.xml accordingly to https://developer.atlassian.com/server/framework/atlassian-sdk/working-with-maven/#atlassian-maven-proxy

Add the official repository and try again using atlassian sdk tools (e.g. atlas-debug)

<project>
  <repositories>
    <repository>
      <id>atlassian-public</id>
      <url>https://packages.atlassian.com/maven-atlassian-all/</url>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>
...

Hi @SeriousDen :- Thanks for addressing this issue. I debugged the same and found in my settings.xml pointed to nexus repo with default profile. And the Atlassian repositories are under another profiles which are not included. I just changed it and seeing the bundles are downloading. I need to check with the system admin on this. Thanks for your help.

Hi @SeriousDen :- When these Jars are available in maven repo any documentation, when this available in maven repo. As these are in maven external repo, our nexus is not listing on this repo to download the Jars. Any update when these maven external repo jars moved to maven repo, for easy access.

Hi @DharmaTeja,
I have nothing to say about that, sorry. Please, try to ask the nexus administrator for helping in your issue.

Hi @SeriousDen :- Looking for a documentation about when these available in maven repo from Atlassian. Is there any documentation available .