DependencyResolutionException on Jenkins build

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] ------------------------------------------------------------------------
[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

( Connection reset -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

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 :