DependencyResolutionException on Jenkins build

Hi,
I can build my confluence plugin successfully on my local machine but when I try to build it with Jenkins I get the following error messages:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:12 min
[INFO] Finished at: 2021-03-11T02:44:03-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bom: Could not resolve dependencies for project com.promptlink.confluence.plugins:bom:atlassian-plugin:1.1.0-SNAPSHOT: Failed to collect dependencies at com.atlassian.confluence.plugins:confluence-create-content-plugin:jar:7.0.0: Failed to read artifact descriptor for com.atlassian.confluence.plugins:confluence-create-content-plugin:jar:7.0.0: Could not transfer artifact com.atlassian.confluence:confluence-project:pom:6.7.0-CONFSRVDEV-4482-milestone from/to atlassian-public

(Index of maven-external/): Connection reset → [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] DependencyResolutionException - Apache Maven - Apache Software Foundation

Can it be because I use plugin SDK installed on my local machine that doesn’t exist on the Jenkins server? If so, what should I do?

I found the solution. To resolve the problem I updated pom.xml to declare the necessary repository. Here is what I added to pom.xml within :

<pluginRepositories>
        <pluginRepository>
            <id>atlassian-public</id>
            <url>https://packages.atlassian.com/maven-external/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>