Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SAM@USER MINGW64 ~/servers (master)
- $ mvn openmrs-sdk:setup -e
- [INFO] Error stacktraces are turned on.
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.12.4:setup (default-cli) @ standalone-pom ---
- Setting up a new server...
- Specify server id (-DserverId) (default: 'server1'):
- You can setup the following servers:
- 1) Distribution
- 2) Platform
- Which one do you choose? [1/2]: 1
- You can deploy the following versions of distribution:
- 1) Reference Application 2.8.0-SNAPSHOT
- 2) Reference Application 2.7.0
- 3) Reference Application 2.6.1
- 4) Reference Application 2.5
- 5) Reference Application 2.4
- 6) Other...
- Which one do you choose? [1/2/3/4/5/6]: 2
- [INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.7.0:jar
- [INFO] Copying referenceapplication-package-2.7.0.jar to C:\Users\SAM\openmrs\server1\openmrs-distro.jar
- [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.0.6:war
- [INFO] Copying openmrs-webapp-2.0.6.war to C:\Users\SAM\openmrs\server1\openmrs-2.0.6.war
- [INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.3.3:jar
- [INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.9.0:jar
- [INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.9.0:jar
- [INFO] Configured Artifact: org.openmrs.module:owa-omod:1.8.1:jar
- [INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.13:omod
- [INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.10.0:jar
- [INFO] Configured Artifact: org.openmrs:event-omod:2.6.0:jar
- [INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.6:jar
- [INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.9.0:jar
- [INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.2:jar
- [INFO] Configured Artifact: org.openmrs.module:appui-omod:1.8.0:jar
- [INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.0:jar
- [INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.9.0:jar
- [INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.6.1:jar
- [INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar
- [INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.4.1:jar
- [INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.3.3:jar
- [INFO] Configured Artifact: org.openmrs.module:chartsearch-omod:2.1.0:jar
- [INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.6.4:jar
- [INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.3:jar
- [INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.23.0:jar
- [INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.7.0:jar
- [INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:3.4.0:jar
- [INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.10.0:jar
- [INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.7.0:jar
- [INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.5.0:jar
- [INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.18.0:jar
- [INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.4:jar
- [INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.15.0:jar
- [INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.2.2:jar
- [INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.8.0:jar
- [INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.8.0:jar
- [INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.2:jar
- [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.21.0:jar
- [INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2:omod
- [INFO] Configured Artifact: org.openmrs.module:uicommons-omod:2.5.1:jar
- [INFO] Configured Artifact: org.openmrs.module:uiframework-omod:3.13.0:jar
- [INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.3.0:jar
- [INFO] Copying legacyui-omod-1.3.3.jar to C:\Users\SAM\openmrs\server1\modules\legacyui-1.3.3.omod
- [INFO] Copying metadatadeploy-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\metadatadeploy-1.9.0.omod
- [INFO] Copying reportingrest-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\reportingrest-1.9.0.omod
- [INFO] Copying owa-omod-1.8.1.jar to C:\Users\SAM\openmrs\server1\modules\owa-1.8.1.omod
- [INFO] Copying serialization.xstream-omod-0.2.13.omod to C:\Users\SAM\openmrs\server1\modules\serialization.xstream-0.2.13.omod
- [INFO] Copying registrationapp-omod-1.10.0.jar to C:\Users\SAM\openmrs\server1\modules\registrationapp-1.10.0.omod
- [INFO] Copying event-omod-2.6.0.jar to C:\Users\SAM\openmrs\server1\modules\event-2.6.0.omod
- [INFO] Copying uilibrary-omod-2.0.6.jar to C:\Users\SAM\openmrs\server1\modules\uilibrary-2.0.6.omod
- [INFO] Copying htmlwidgets-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\htmlwidgets-1.9.0.omod
- [INFO] Copying dataexchange-omod-1.3.2.jar to C:\Users\SAM\openmrs\server1\modules\dataexchange-1.3.2.omod
- [INFO] Copying appui-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\appui-1.8.0.omod
- [INFO] Copying allergyui-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\allergyui-1.8.0.omod
- [INFO] Copying providermanagement-omod-2.9.0.jar to C:\Users\SAM\openmrs\server1\modules\providermanagement-2.9.0.omod
- [INFO] Copying appointmentschedulingui-omod-1.6.1.jar to C:\Users\SAM\openmrs\server1\modules\appointmentschedulingui-1.6.1.omod
- [INFO] Copying formentryapp-omod-1.4.2.jar to C:\Users\SAM\openmrs\server1\modules\formentryapp-1.4.2.omod
- [INFO] Copying idgen-omod-4.4.1.jar to C:\Users\SAM\openmrs\server1\modules\idgen-4.4.1.omod
- [INFO] Copying metadatamapping-omod-1.3.3.jar to C:\Users\SAM\openmrs\server1\modules\metadatamapping-1.3.3.omod
- [INFO] Copying chartsearch-omod-2.1.0.jar to C:\Users\SAM\openmrs\server1\modules\chartsearch-2.1.0.omod
- [INFO] Copying htmlformentryui-omod-1.6.4.jar to C:\Users\SAM\openmrs\server1\modules\htmlformentryui-1.6.4.omod
- [INFO] Copying referencedemodata-omod-1.4.3.jar to C:\Users\SAM\openmrs\server1\modules\referencedemodata-1.4.3.omod
- [INFO] Copying emrapi-omod-1.23.0.jar to C:\Users\SAM\openmrs\server1\modules\emrapi-1.23.0.omod
- [INFO] Copying referenceapplication-omod-2.7.0.jar to C:\Users\SAM\openmrs\server1\modules\referenceapplication-2.7.0.omod
- [INFO] Copying htmlformentry-omod-3.4.0.jar to C:\Users\SAM\openmrs\server1\modules\htmlformentry-3.4.0.omod
- [INFO] Copying appframework-omod-2.10.0.jar to C:\Users\SAM\openmrs\server1\modules\appframework-2.10.0.omod
- [INFO] Copying referencemetadata-omod-2.7.0.jar to C:\Users\SAM\openmrs\server1\modules\referencemetadata-2.7.0.omod
- [INFO] Copying reportingui-omod-1.5.0.jar to C:\Users\SAM\openmrs\server1\modules\reportingui-1.5.0.omod
- [INFO] Copying coreapps-omod-1.18.0.jar to C:\Users\SAM\openmrs\server1\modules\coreapps-1.18.0.omod
- [INFO] Copying reportingcompatibility-omod-2.0.4.jar to C:\Users\SAM\openmrs\server1\modules\reportingcompatibility-2.0.4.omod
- [INFO] Copying reporting-omod-1.15.0.jar to C:\Users\SAM\openmrs\server1\modules\reporting-1.15.0.omod
- [INFO] Copying adminui-omod-1.2.2.jar to C:\Users\SAM\openmrs\server1\modules\adminui-1.2.2.omod
- [INFO] Copying registrationcore-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\registrationcore-1.8.0.omod
- [INFO] Copying appointmentscheduling-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\appointmentscheduling-1.8.0.omod
- [INFO] Copying calculation-omod-1.2.jar to C:\Users\SAM\openmrs\server1\modules\calculation-1.2.omod
- [INFO] Copying webservices.rest-omod-2.21.0.jar to C:\Users\SAM\openmrs\server1\modules\webservices.rest-2.21.0.omod
- [INFO] Copying atlas-omod-2.2.omod to C:\Users\SAM\openmrs\server1\modules\atlas-2.2.omod
- [INFO] Copying uicommons-omod-2.5.1.jar to C:\Users\SAM\openmrs\server1\modules\uicommons-2.5.1.omod
- [INFO] Copying uiframework-omod-3.13.0.jar to C:\Users\SAM\openmrs\server1\modules\uiframework-3.13.0.omod
- [INFO] Copying metadatasharing-omod-1.3.0.jar to C:\Users\SAM\openmrs\server1\modules\metadatasharing-1.3.0.omod
- What port would you like your server to use? (default: '8080'):
- If you want to enable remote debugging by default when running the server,
- specify the port number here (e.g. 1044). Leave blank to disable debugging.
- (Do not do this on a production server) (default: 'no debugging'):
- Which database would you like to use?:
- 1) MySQL 5.6 (requires pre-installed MySQL 5.6)
- 2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
- 3) Existing docker container (requires pre-installed Docker)
- Which one do you choose? [1/2/3]: 1
- The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'):
- Please specify database username (-DdbUser) (default: 'root'):
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 18:50 min
- [INFO] Finished at: 2017-12-21T13:58:19+02:00
- [INFO] Final Memory: 14M/93M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.12.4:setup (default-cli) on project standalone-pom: Failed to setup server: NullPointerException -> [Help 1]
- org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.12.4:setup (default-cli) on project standalone-pom: Failed to setup server
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
- at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
- at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
- at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
- at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
- at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
- at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
- Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to setup server
- at org.openmrs.maven.plugins.Setup.setup(Setup.java:276)
- at org.openmrs.maven.plugins.Setup.executeTask(Setup.java:630)
- at org.openmrs.maven.plugins.AbstractTask.execute(AbstractTask.java:181)
- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
- ... 20 more
- Caused by: java.lang.NullPointerException
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForPassword(DefaultWizard.java:248)
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForValueIfMissingWithDefault(DefaultWizard.java:178)
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForPasswordIfMissingWithDefault(DefaultWizard.java:158)
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForDbCredentialsIfMissing(DefaultWizard.java:886)
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForMySQLDb(DefaultWizard.java:706)
- at org.openmrs.maven.plugins.utility.DefaultWizard.promptForDb(DefaultWizard.java:679)
- at org.openmrs.maven.plugins.Setup.setup(Setup.java:203)
- ... 24 more
- [ERROR]
- [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
- SAM@USER MINGW64 ~/servers (master)
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement