Build failure when deploying distribution during SDK setup

I am setting up openMRS-sdk using cmd on windows 10 but I get the error below:

Setting up a new server…

Specify server id (-DserverId) (default: ‘server’): 1

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: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [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: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from openmrs-bintray-repo [INFO] artifact org.openmrs.distro:referenceapplication-package: checking for updates from central

You can deploy the following versions of distribution:

  1. Reference Application 2.3.1
  2. Reference Application 2.2
  3. Reference Application 2.1
  4. Other…

Which one do you choose? [1/2/3/4]: 2 [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:1.11.2:war Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/1.11.2/openmrs-webapp-1.11.2.war Downloading from openmrs-repo-thirdparty: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/web/openmrs-webapp/1.11.2/openmrs-webapp-1.11.2.war Downloading from openmrs-bintray-repo: https://dl.bintray.com/openmrs/maven/org/openmrs/web/openmrs-webapp/1.11.2/openmrs-webapp-1.11.2.war Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/web/openmrs-webapp/1.11.2/openmrs-webapp-1.11.2.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:17 min [INFO] Finished at: 2018-03-21T10:58:02+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.0: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.web:openmrs-webapp:war:1.11.2 from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [ERROR] org.openmrs.web:openmrs-webapp:war:1.11.2 [ERROR] [ERROR] from the specified remote repositories: [ERROR] openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public, releases=true, snapshots=true), [ERROR] openmrs-repo-thirdparty (http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty, releases=true, snapshots=true), [ERROR] openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/, releases=true, snapshots=true), [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [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 e[0me[0m

@rickysilas did you chance to look at OpenMRS SDK

and next time drop the log at pastebin.com if you don’t mind.

Thanks I will do that