Developing A Rest Service Plugin

I am following the instructions given in Developing A Rest Service Plugin, here: “https://developer.atlassian.com/server/framework/atlassian-sdk/developing-a-rest-service-plugin/” to learn how to create a REST API plugin for the Atlassian Confluence project. If you look closely at the error message (see attached): “Could not transfer artifact org.apache.commons:commons-lang3:pom:3.8.1 from/to atlassian-public (https://maven.atlassian.com/repository/public)::slight_smile: hostname in certificate didn’t match: <maven.atlassian.com> != <.services.atlassian.com> OR <.services.atlassian.com> OR <services.atlassian.com>”
This states that it’s a certificate problem, and seems to be with the maven.atlassian.com site.
BUT a colleague ran the command, atlas-create-refapp-plugin, on his laptop at work and it failed. He ran it again, on the same laptop but at home and it installed OK. I have run it at work and at home with the error messages below. The fact that he got it to work at home implies to me that this problem isn’t about certificates.

Has anyone else had this problem? How did you resolve it?

*** START OF LOG ***
Microsoft Windows [Version 10.0.17134.1304]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\QUINNJ>cd C:\Users\QUINNJ\REST Service Plugin
C:\Users\QUINNJ\REST Service Plugin>atlas-create-refapp-plugin

Executing: “C:\Program Files (x86)\Apt for Java-1.4.2\bin\mvn.bat” com.atlassian.maven.plugins:refapp-maven-plugin:8.0.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.284s
[INFO] Finished at: Fri Mar 13 08:58:18 GMT 2020
[INFO] Final Memory: 13M/113M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:refapp-maven-plugin:8.0.2:create (default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:refapp-maven-plugin:8.0.2:create failed: Plugin com.atlassian.maven.plugins:refapp-maven-plugin:8.0.2 or one of its dependencies could not be resolved: Failed to collect dependencies for com.atlassian.maven.plugins:refapp-maven-plugin:jar:8.0.2 (): Failed to read artifact descriptor for org.apache.commons:commons-lang3:jar:3.8.1: Could not transfer artifact org.apache.commons:commons-lang3:pom:3.8.1 from/to atlassian-public (Index of maven-external/): hostname in certificate didn’t match: <maven.atlassian.com> != <.services.atlassian.com> OR <.services.atlassian.com> OR <services.atlassian.com> → [Help 1]
[ERROR] [Help 1] PluginResolutionException - Apache Maven - Apache Software Foundation
*** END OF LOG ***