Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-pluginFailed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin

hello i installed openmrs-sdk, mvn openmrs-sdk:help entered this maven command to check whether it installed working successfully which was successful error occurred when setting up the serve as seen below

Microsoft Windows [Version 10.0.19042.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\TOSHIBA>
C:\Users\TOSHIBA>Microsoft Windows [Version 10.0.19042.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\TOSHIBA>
C:\Users\TOSHIBA>mvn openmrs-sdk:help
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:help (default-cli) @ standalone-pom ---

Would you be willing to help us improve SDK by sending us once in a while anonymous usage statistics (you can always change your mind by going to sdk-stats.properties and setting statsEnabled to false) [Y/n]: y

Anonymous usage statistics could not be sent due to docs.google.com


OpenMRS SDK 4.1.1

For more info, see SDK documentation: https://wiki.openmrs.org/display/docs/OpenMRS+SDK


usage: create-project
Description: Create platform/reference application/owa module


usage: setup
Description: Setup a new instance of OpenMRS server. It can be used for
setting up a platform or a distribution. It prompts for any missing, but
required parameters.
    -DaddDemoData        Add demo data when setting up a platform server.
    -DdbDriver           Database driver e.g. 'mysql' or 'h2'.
    -DdbPassword         Password for the database user.
    -DdbUri              Uri for JDBC connection to the database (default
                         value matches dbDriver)
    -DdbUser             Username for the database (defaults to 'root').
    -Ddistro             OpenMRS Distribution to setup in a format
                         'groupId:artifactId:version'. You can skip
                         groupId, if it is 'org.openmrs.distro'.
    -Dfile               Path to installation.properties file for batch
                         setup.
    -Dplatform           OpenMRS Platform version to setup e.g. '1.11.5'.
    -DserverId           Unique id of a server.

usage: deploy
Description: Deploy a module/distribution/platform to a server. It can be
used for deploying a new artifact or upgrading/downgrading an artifact,
which was previosly deployed.
    -DartifactId        Artifact id of an artifact, which you want to
                        deploy.
    -DgroupId           Group id of an artifact, which you want to deploy
                        (defaults to 'org.openmrs.module').
    -DserverId          Unique id of a server.
    -Dversion           Version of an artifact, which you want to deploy.

usage: undeploy
Description: Undeploy a module from a server.
    -DartifactId        Artifact id of a module, which you want to
                        undeploy.
    -DgroupId           Group id of a module, which you want to undeploy
                        (defaults to 'org.openmrs.module').
    -DserverId          Unique id of a server.

usage: reset
Description: Reset server and its database to the initial state.
    -Dfull            If 'true', delete modules installed manually
                      (defaults to 'false').
    -Dserverid        Unique id of a server.

usage: delete
Description: Delete a server and its database.
    -DserverId        Unique id of a server.

usage: run
Description: Start a server. If it is run from a module/distro/platform
project, the project will be redeployed before launching.
    -Ddebug           Enable remote debugging on the given port (defaults
                      to '1044' if empty).
    -Dfork            Set to 'false' to disable forking a process for
                      running the server (defaults to 'true'). Useful for
                      debugging within an IDE without a remote debugger.
                      Not that 'false' disables the live-reloading
                      feature.
    -Dport            Port to use for running the server (defaults to
                      '8080').
    -DserverId        Unique id of a server.

usage: watch
Description: Add a module from the current directory to the list of
watched projects. It enables the live-reloading feature for a module.
    -DserverId        Unique id of a server.

usage: unwatch
Description: Remove a module from the list of watched projects. It
disabled the live-reloading feature for a module.
    -DartifactId        Artifact id of a module to unwatch.
    -DgroupId           Group id of a module to unwatch. It is optional,
                        if artifact id is unambiguous.
    -DserverId          Unique id of a server.

usage: info
Description: Display server details including the list of watched modules.
    -DserverId        Unique id of a server.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:48 min
[INFO] Finished at: 2021-08-21T21:03:40+03:00
[INFO] ------------------------------------------------------------------------

C:\Users\TOSHIBA>mvn openmrs-sdk:setup-sdk -U
[INFO] Scanning for projects...
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 68 B/s)
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 2.1 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 9.5 kB/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/apache/maven/plugins/maven-metadata.xml (10 kB at 481 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/maven-metadata.xml (1.4 kB at 63 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/mojo/maven-metadata.xml (20 kB at 1.4 kB/s)
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.6 kB at 313 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.9 kB at 285 B/s)
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:setup-sdk (default-cli) @ standalone-pom ---
[INFO] SDK installed successfully, settings file: C:\Users\TOSHIBA\.m2\settings.xml
[INFO] Now you can use sdk: mvn openmrs-sdk:<task_name>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  47.628 s
[INFO] Finished at: 2021-08-21T21:04:58+03:00
[INFO] ------------------------------------------------------------------------

C:\Users\TOSHIBA>mvn openmrs-sdk:setup
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:setup (default-cli) @ standalone-pom ---

Setting up a new server...

Specify server id (-DserverId) (default: 'server'):

You can setup the following servers:
1) Distribution
2) Platform

Which one do you choose? [1/2]: 1
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from openmrs-repo
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: openmrs-repo due to an error: Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from archetype
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: archetype due to an error: Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from openmrs-repo-thirdparty
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: openmrs-repo-thirdparty due to an error: Transfer failed for https://mavenrepo.openmrs.org/thirdparty/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from central
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: central due to an error: Transfer failed for https://repo.maven.apache.org/maven2/org/openmrs/distro/referenceapplication-package/maven-metadata.xml

You can deploy the following versions of distribution:
1) Reference Application 2.12.0-SNAPSHOT
2) Reference Application 2.11.0
3) Reference Application 2.10.0
4) Reference Application 2.9.0
5) Reference Application 2.8.1
6) Other...

Which one do you choose? [1/2/3/4/5/6]: 3
[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.10.0:jar
[INFO] Copying referenceapplication-package-2.10.0.jar to C:\Users\TOSHIBA\openmrs\server\openmrs-distro.jar
[INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.3.0:war
[INFO] Copying openmrs-webapp-2.3.0.war to C:\Users\TOSHIBA\openmrs\server\openmrs-2.3.0.war
[INFO] Configured Artifact: org.openmrs.module:addresshierarchy-omod:2.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:owa-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.14:omod
[INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.16.0:jar
[INFO] Configured Artifact: org.openmrs:event-omod:2.7.0:jar
[INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.6:jar
[INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.4:jar
[INFO] Configured Artifact: org.openmrs.module:appui-omod:1.12.0:jar
[INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.2:jar
[INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.9.0:jar
[INFO] Configured Artifact: org.openmrs.module:attachments-omod:2.2.0:jar
[INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar
[INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.5.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.3.4:jar
[INFO] Configured Artifact: org.openmrs.module:fhir-omod:1.20.0:jar
[INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.5:jar
[INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:3.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.14.0:jar
[INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.10.2:jar
[INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.6:jar
[INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.20.0:jar
[INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.3.0:jar
[INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.9.0:jar
[INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.12.0:jar
[INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.2:jar
[INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2:omod
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:16 min
[INFO] Finished at: 2021-08-21T21:09:47+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.1.1:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact org.openmrs.module:atlas-omod:omod:2.2 from/to openmrs-repo (https://mavenrepo.openmrs.org/public): Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
[ERROR]   org.openmrs.module:atlas-omod:omod:2.2
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   openmrs-repo (https://mavenrepo.openmrs.org/public, releases=true, snapshots=true),
[ERROR]   archetype (https://mavenrepo.openmrs.org/public, releases=true, snapshots=true),
[ERROR]   openmrs-repo-thirdparty (https://mavenrepo.openmrs.org/thirdparty, releases=true, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false): Unknown host mavenrepo.openmrs.org
[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/MojoExecutionException

C:\Users\TOSHIBA>
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:help (default-cli) @ standalone-pom ---

Would you be willing to help us improve SDK by sending us once in a while anonymous usage statistics (you can always change your mind by going to sdk-stats.properties and setting statsEnabled to false) [Y/n]: y

Anonymous usage statistics could not be sent due to docs.google.com


OpenMRS SDK 4.1.1

For more info, see SDK documentation: https://wiki.openmrs.org/display/docs/OpenMRS+SDK


usage: create-project
Description: Create platform/reference application/owa module


usage: setup
Description: Setup a new instance of OpenMRS server. It can be used for
setting up a platform or a distribution. It prompts for any missing, but
required parameters.
    -DaddDemoData        Add demo data when setting up a platform server.
    -DdbDriver           Database driver e.g. 'mysql' or 'h2'.
    -DdbPassword         Password for the database user.
    -DdbUri              Uri for JDBC connection to the database (default
                         value matches dbDriver)
    -DdbUser             Username for the database (defaults to 'root').
    -Ddistro             OpenMRS Distribution to setup in a format
                         'groupId:artifactId:version'. You can skip
                         groupId, if it is 'org.openmrs.distro'.
    -Dfile               Path to installation.properties file for batch
                         setup.
    -Dplatform           OpenMRS Platform version to setup e.g. '1.11.5'.
    -DserverId           Unique id of a server.

usage: deploy
Description: Deploy a module/distribution/platform to a server. It can be
used for deploying a new artifact or upgrading/downgrading an artifact,
which was previosly deployed.
    -DartifactId        Artifact id of an artifact, which you want to
                        deploy.
    -DgroupId           Group id of an artifact, which you want to deploy
                        (defaults to 'org.openmrs.module').
    -DserverId          Unique id of a server.
    -Dversion           Version of an artifact, which you want to deploy.

usage: undeploy
Description: Undeploy a module from a server.
    -DartifactId        Artifact id of a module, which you want to
                        undeploy.
    -DgroupId           Group id of a module, which you want to undeploy
                        (defaults to 'org.openmrs.module').
    -DserverId          Unique id of a server.

usage: reset
Description: Reset server and its database to the initial state.
    -Dfull            If 'true', delete modules installed manually
                      (defaults to 'false').
    -Dserverid        Unique id of a server.

usage: delete
Description: Delete a server and its database.
    -DserverId        Unique id of a server.

usage: run
Description: Start a server. If it is run from a module/distro/platform
project, the project will be redeployed before launching.
    -Ddebug           Enable remote debugging on the given port (defaults
                      to '1044' if empty).
    -Dfork            Set to 'false' to disable forking a process for
                      running the server (defaults to 'true'). Useful for
                      debugging within an IDE without a remote debugger.
                      Not that 'false' disables the live-reloading
                      feature.
    -Dport            Port to use for running the server (defaults to
                      '8080').
    -DserverId        Unique id of a server.

usage: watch
Description: Add a module from the current directory to the list of
watched projects. It enables the live-reloading feature for a module.
    -DserverId        Unique id of a server.

usage: unwatch
Description: Remove a module from the list of watched projects. It
disabled the live-reloading feature for a module.
    -DartifactId        Artifact id of a module to unwatch.
    -DgroupId           Group id of a module to unwatch. It is optional,
                        if artifact id is unambiguous.
    -DserverId          Unique id of a server.

usage: info
Description: Display server details including the list of watched modules.
    -DserverId        Unique id of a server.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:48 min
[INFO] Finished at: 2021-08-21T21:03:40+03:00
[INFO] ------------------------------------------------------------------------

C:\Users\TOSHIBA>mvn openmrs-sdk:setup-sdk -U
[INFO] Scanning for projects...
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 68 B/s)
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 2.1 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 9.5 kB/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/apache/maven/plugins/maven-metadata.xml (10 kB at 481 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/maven-metadata.xml (1.4 kB at 63 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/mojo/maven-metadata.xml (20 kB at 1.4 kB/s)
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.6 kB at 313 B/s)
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml (1.9 kB at 285 B/s)
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:setup-sdk (default-cli) @ standalone-pom ---
[INFO] SDK installed successfully, settings file: C:\Users\TOSHIBA\.m2\settings.xml
[INFO] Now you can use sdk: mvn openmrs-sdk:<task_name>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  47.628 s
[INFO] Finished at: 2021-08-21T21:04:58+03:00
[INFO] ------------------------------------------------------------------------

C:\Users\TOSHIBA>mvn openmrs-sdk:setup
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:4.1.1:setup (default-cli) @ standalone-pom ---

Setting up a new server...

Specify server id (-DserverId) (default: 'server'):

You can setup the following servers:
1) Distribution
2) Platform

Which one do you choose? [1/2]: 1
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from openmrs-repo
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: openmrs-repo due to an error: Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from archetype
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: archetype due to an error: Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from openmrs-repo-thirdparty
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: openmrs-repo-thirdparty due to an error: Transfer failed for https://mavenrepo.openmrs.org/thirdparty/org/openmrs/distro/referenceapplication-package/maven-metadata.xml
[INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from central
[WARNING] repository metadata for: 'artifact org.openmrs.distro:referenceapplication-package' could not be retrieved from repository: central due to an error: Transfer failed for https://repo.maven.apache.org/maven2/org/openmrs/distro/referenceapplication-package/maven-metadata.xml

You can deploy the following versions of distribution:
1) Reference Application 2.12.0-SNAPSHOT
2) Reference Application 2.11.0
3) Reference Application 2.10.0
4) Reference Application 2.9.0
5) Reference Application 2.8.1
6) Other...

Which one do you choose? [1/2/3/4/5/6]: 3
[INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.10.0:jar
[INFO] Copying referenceapplication-package-2.10.0.jar to C:\Users\TOSHIBA\openmrs\server\openmrs-distro.jar
[INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.3.0:war
[INFO] Copying openmrs-webapp-2.3.0.war to C:\Users\TOSHIBA\openmrs\server\openmrs-2.3.0.war
[INFO] Configured Artifact: org.openmrs.module:addresshierarchy-omod:2.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.11.0:jar
[INFO] Configured Artifact: org.openmrs.module:owa-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.14:omod
[INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.16.0:jar
[INFO] Configured Artifact: org.openmrs:event-omod:2.7.0:jar
[INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.6:jar
[INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.4:jar
[INFO] Configured Artifact: org.openmrs.module:appui-omod:1.12.0:jar
[INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.2:jar
[INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.9.0:jar
[INFO] Configured Artifact: org.openmrs.module:attachments-omod:2.2.0:jar
[INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar
[INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.5.0:jar
[INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.3.4:jar
[INFO] Configured Artifact: org.openmrs.module:fhir-omod:1.20.0:jar
[INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.5:jar
[INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:3.10.0:jar
[INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.14.0:jar
[INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.10.2:jar
[INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.6.0:jar
[INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.6:jar
[INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.20.0:jar
[INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.3.0:jar
[INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.9.0:jar
[INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.12.0:jar
[INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.2:jar
[INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.28.0:jar
[INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2:omod
Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:16 min
[INFO] Finished at: 2021-08-21T21:09:47+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.1.1:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact org.openmrs.module:atlas-omod:omod:2.2 from/to openmrs-repo (https://mavenrepo.openmrs.org/public): Transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.omod
[ERROR]   org.openmrs.module:atlas-omod:omod:2.2
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   openmrs-repo (https://mavenrepo.openmrs.org/public, releases=true, snapshots=true),
[ERROR]   archetype (https://mavenrepo.openmrs.org/public, releases=true, snapshots=true),
[ERROR]   openmrs-repo-thirdparty (https://mavenrepo.openmrs.org/thirdparty, releases=true, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false): Unknown host mavenrepo.openmrs.org
[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/MojoExecutionException

C:\Users\TOSHIBA>

please help on to go about this

@mozzy , @dkayiwa , @gcliff, @ruhanga, @sharif

Did you get a chance of setting up the OpenMRS SDK by running this command in your terminal

mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk before running mvn openmrs-sdk:help ?

on top of this how are you starting sdk?

Thank guys, @jwnasambu , @herbert24 for your help. I have successfully finished the process and the SDK is working fine thanks again

1 Like

just a curious question: Where does mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk store its downloaded files after running that command and which files are they?.. Felt like deleting them and build again due to some issues here. OR

How can I re-run this command to override the exisisting files?

cc @dkayiwa @ibacher @mozzy @reagan @kdaud

On my machine, it’s under ~/openmrs (home → openmrs). I think on windows its on C/users/user_name/openmrs

If you are pretty annoyed and you what to delete the whole plugin, then delete the whole openmrs folder and run mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk again

@jnsereko to me it looks like the openmrs folder is created by mvn openmrs-sdk:setup not mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk anyone to correct me please?. Am tempted to think that the .m2 folder has some of the files

If that the case, then you can delete the openmrs-sdk-maven-plugin located under the plugins folder ~/.m2/repository/org/openmrs/maven/plugins

However, personally, i wouldn’t think of deleting stuff

@jnsereko what exactly is failing please be ore specific so that we be able to get a solution plus what are you trying to do so that someone may answer in that direction

thanks @jnsereko

So, setup-sdk creates exactly three files:

  • ~/openmrs/sdk.properties (*nix) or C:\Users\%USERNAME%\openmrs\sdk.properties (Windows)
  • ~/openmrs/sdk-stats.properties (*nix) or C:\Users\%USERNAME%\openmrs\sdk-stats.properties (Windows)
  • ~/.m2/settings.xml (*nix) or… wherever Maven installs its settings on Windows (I’m actually not sure and the path we use is defined by Maven)

It should be perfectly safe to re-run mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk as many times as you like.

It’s actually created by most commands in the SDK if it doesn’t exist.

Those are the actual executable files. They’re installed by Maven rather than by the SDK.

2 Likes

thank you for the pointers @ibacher

and are you able to run now @ndacyayisenga ?

Actually no… Actually I have this issue…

From the little knowledge I have about the sdk was that the UI frameworks get installed by default when installing the sdk. Looking closely at the modules to me it looks like all the modules responsible for the user interface are installed.

I have installed the sdk several times but this issue seems to persist :sleepy: cc @kdaud @jwnasambu @herbert24 @dkayiwa @ibacher @tendomart

how many servers did you create using the sdk?

@herbert24 curently I have one server though I have deleted many of them due to the same issue :upside_down_face: cc @kdaud @ibacher

just to be sure what really happens when you try the sdk with no module, you can first copy them to a different folder, and start the instance then we see the out come

Do mean all of them :roll_eyes:? or only the legacy ui module

all of them and start the same server, some sort of debugging