Advertisement
samuel34

Untitled

Dec 21st, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.03 KB | None | 0 0
  1. SAM@USER MINGW64 ~/servers (master)
  2. $ mvn openmrs-sdk:setup -e
  3. [INFO] Error stacktraces are turned on.
  4. [INFO] Scanning for projects...
  5. [INFO]
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO] Building Maven Stub Project (No POM) 1
  8. [INFO] ------------------------------------------------------------------------
  9. [INFO]
  10. [INFO] --- openmrs-sdk-maven-plugin:3.12.4:setup (default-cli) @ standalone-pom ---
  11.  
  12. Setting up a new server...
  13.  
  14. Specify server id (-DserverId) (default: 'server1'):
  15.  
  16. You can setup the following servers:
  17. 1) Distribution
  18. 2) Platform
  19.  
  20. Which one do you choose? [1/2]: 1
  21.  
  22. You can deploy the following versions of distribution:
  23. 1) Reference Application 2.8.0-SNAPSHOT
  24. 2) Reference Application 2.7.0
  25. 3) Reference Application 2.6.1
  26. 4) Reference Application 2.5
  27. 5) Reference Application 2.4
  28. 6) Other...
  29.  
  30. Which one do you choose? [1/2/3/4/5/6]: 2
  31. [INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.7.0:jar
  32. [INFO] Copying referenceapplication-package-2.7.0.jar to C:\Users\SAM\openmrs\server1\openmrs-distro.jar
  33. [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.0.6:war
  34. [INFO] Copying openmrs-webapp-2.0.6.war to C:\Users\SAM\openmrs\server1\openmrs-2.0.6.war
  35. [INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.3.3:jar
  36. [INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.9.0:jar
  37. [INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.9.0:jar
  38. [INFO] Configured Artifact: org.openmrs.module:owa-omod:1.8.1:jar
  39. [INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.13:omod
  40. [INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.10.0:jar
  41. [INFO] Configured Artifact: org.openmrs:event-omod:2.6.0:jar
  42. [INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.6:jar
  43. [INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.9.0:jar
  44. [INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.2:jar
  45. [INFO] Configured Artifact: org.openmrs.module:appui-omod:1.8.0:jar
  46. [INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.0:jar
  47. [INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.9.0:jar
  48. [INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.6.1:jar
  49. [INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar
  50. [INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.4.1:jar
  51. [INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.3.3:jar
  52. [INFO] Configured Artifact: org.openmrs.module:chartsearch-omod:2.1.0:jar
  53. [INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.6.4:jar
  54. [INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.3:jar
  55. [INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.23.0:jar
  56. [INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.7.0:jar
  57. [INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:3.4.0:jar
  58. [INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.10.0:jar
  59. [INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.7.0:jar
  60. [INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.5.0:jar
  61. [INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.18.0:jar
  62. [INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.4:jar
  63. [INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.15.0:jar
  64. [INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.2.2:jar
  65. [INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.8.0:jar
  66. [INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.8.0:jar
  67. [INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.2:jar
  68. [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.21.0:jar
  69. [INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2:omod
  70. [INFO] Configured Artifact: org.openmrs.module:uicommons-omod:2.5.1:jar
  71. [INFO] Configured Artifact: org.openmrs.module:uiframework-omod:3.13.0:jar
  72. [INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.3.0:jar
  73. [INFO] Copying legacyui-omod-1.3.3.jar to C:\Users\SAM\openmrs\server1\modules\legacyui-1.3.3.omod
  74. [INFO] Copying metadatadeploy-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\metadatadeploy-1.9.0.omod
  75. [INFO] Copying reportingrest-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\reportingrest-1.9.0.omod
  76. [INFO] Copying owa-omod-1.8.1.jar to C:\Users\SAM\openmrs\server1\modules\owa-1.8.1.omod
  77. [INFO] Copying serialization.xstream-omod-0.2.13.omod to C:\Users\SAM\openmrs\server1\modules\serialization.xstream-0.2.13.omod
  78. [INFO] Copying registrationapp-omod-1.10.0.jar to C:\Users\SAM\openmrs\server1\modules\registrationapp-1.10.0.omod
  79. [INFO] Copying event-omod-2.6.0.jar to C:\Users\SAM\openmrs\server1\modules\event-2.6.0.omod
  80. [INFO] Copying uilibrary-omod-2.0.6.jar to C:\Users\SAM\openmrs\server1\modules\uilibrary-2.0.6.omod
  81. [INFO] Copying htmlwidgets-omod-1.9.0.jar to C:\Users\SAM\openmrs\server1\modules\htmlwidgets-1.9.0.omod
  82. [INFO] Copying dataexchange-omod-1.3.2.jar to C:\Users\SAM\openmrs\server1\modules\dataexchange-1.3.2.omod
  83. [INFO] Copying appui-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\appui-1.8.0.omod
  84. [INFO] Copying allergyui-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\allergyui-1.8.0.omod
  85. [INFO] Copying providermanagement-omod-2.9.0.jar to C:\Users\SAM\openmrs\server1\modules\providermanagement-2.9.0.omod
  86. [INFO] Copying appointmentschedulingui-omod-1.6.1.jar to C:\Users\SAM\openmrs\server1\modules\appointmentschedulingui-1.6.1.omod
  87. [INFO] Copying formentryapp-omod-1.4.2.jar to C:\Users\SAM\openmrs\server1\modules\formentryapp-1.4.2.omod
  88. [INFO] Copying idgen-omod-4.4.1.jar to C:\Users\SAM\openmrs\server1\modules\idgen-4.4.1.omod
  89. [INFO] Copying metadatamapping-omod-1.3.3.jar to C:\Users\SAM\openmrs\server1\modules\metadatamapping-1.3.3.omod
  90. [INFO] Copying chartsearch-omod-2.1.0.jar to C:\Users\SAM\openmrs\server1\modules\chartsearch-2.1.0.omod
  91. [INFO] Copying htmlformentryui-omod-1.6.4.jar to C:\Users\SAM\openmrs\server1\modules\htmlformentryui-1.6.4.omod
  92. [INFO] Copying referencedemodata-omod-1.4.3.jar to C:\Users\SAM\openmrs\server1\modules\referencedemodata-1.4.3.omod
  93. [INFO] Copying emrapi-omod-1.23.0.jar to C:\Users\SAM\openmrs\server1\modules\emrapi-1.23.0.omod
  94. [INFO] Copying referenceapplication-omod-2.7.0.jar to C:\Users\SAM\openmrs\server1\modules\referenceapplication-2.7.0.omod
  95. [INFO] Copying htmlformentry-omod-3.4.0.jar to C:\Users\SAM\openmrs\server1\modules\htmlformentry-3.4.0.omod
  96. [INFO] Copying appframework-omod-2.10.0.jar to C:\Users\SAM\openmrs\server1\modules\appframework-2.10.0.omod
  97. [INFO] Copying referencemetadata-omod-2.7.0.jar to C:\Users\SAM\openmrs\server1\modules\referencemetadata-2.7.0.omod
  98. [INFO] Copying reportingui-omod-1.5.0.jar to C:\Users\SAM\openmrs\server1\modules\reportingui-1.5.0.omod
  99. [INFO] Copying coreapps-omod-1.18.0.jar to C:\Users\SAM\openmrs\server1\modules\coreapps-1.18.0.omod
  100. [INFO] Copying reportingcompatibility-omod-2.0.4.jar to C:\Users\SAM\openmrs\server1\modules\reportingcompatibility-2.0.4.omod
  101. [INFO] Copying reporting-omod-1.15.0.jar to C:\Users\SAM\openmrs\server1\modules\reporting-1.15.0.omod
  102. [INFO] Copying adminui-omod-1.2.2.jar to C:\Users\SAM\openmrs\server1\modules\adminui-1.2.2.omod
  103. [INFO] Copying registrationcore-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\registrationcore-1.8.0.omod
  104. [INFO] Copying appointmentscheduling-omod-1.8.0.jar to C:\Users\SAM\openmrs\server1\modules\appointmentscheduling-1.8.0.omod
  105. [INFO] Copying calculation-omod-1.2.jar to C:\Users\SAM\openmrs\server1\modules\calculation-1.2.omod
  106. [INFO] Copying webservices.rest-omod-2.21.0.jar to C:\Users\SAM\openmrs\server1\modules\webservices.rest-2.21.0.omod
  107. [INFO] Copying atlas-omod-2.2.omod to C:\Users\SAM\openmrs\server1\modules\atlas-2.2.omod
  108. [INFO] Copying uicommons-omod-2.5.1.jar to C:\Users\SAM\openmrs\server1\modules\uicommons-2.5.1.omod
  109. [INFO] Copying uiframework-omod-3.13.0.jar to C:\Users\SAM\openmrs\server1\modules\uiframework-3.13.0.omod
  110. [INFO] Copying metadatasharing-omod-1.3.0.jar to C:\Users\SAM\openmrs\server1\modules\metadatasharing-1.3.0.omod
  111.  
  112. What port would you like your server to use? (default: '8080'):
  113.  
  114. If you want to enable remote debugging by default when running the server,
  115. specify the port number here (e.g. 1044). Leave blank to disable debugging.
  116. (Do not do this on a production server) (default: 'no debugging'):
  117.  
  118. Which database would you like to use?:
  119. 1) MySQL 5.6 (requires pre-installed MySQL 5.6)
  120. 2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
  121. 3) Existing docker container (requires pre-installed Docker)
  122.  
  123. Which one do you choose? [1/2/3]: 1
  124.  
  125. The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'):
  126.  
  127. Please specify database username (-DdbUser) (default: 'root'):
  128. [INFO] ------------------------------------------------------------------------
  129. [INFO] BUILD FAILURE
  130. [INFO] ------------------------------------------------------------------------
  131. [INFO] Total time: 18:50 min
  132. [INFO] Finished at: 2017-12-21T13:58:19+02:00
  133. [INFO] Final Memory: 14M/93M
  134. [INFO] ------------------------------------------------------------------------
  135. [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]
  136. 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
  137. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
  138. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  139. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  140. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
  141. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
  142. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  143. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  144. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
  145. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
  146. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
  147. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
  148. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  149. at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
  150. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  151. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  152. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  153. at java.lang.reflect.Method.invoke(Method.java:498)
  154. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  155. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  156. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  157. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  158. Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to setup server
  159. at org.openmrs.maven.plugins.Setup.setup(Setup.java:276)
  160. at org.openmrs.maven.plugins.Setup.executeTask(Setup.java:630)
  161. at org.openmrs.maven.plugins.AbstractTask.execute(AbstractTask.java:181)
  162. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
  163. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
  164. ... 20 more
  165. Caused by: java.lang.NullPointerException
  166. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForPassword(DefaultWizard.java:248)
  167. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForValueIfMissingWithDefault(DefaultWizard.java:178)
  168. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForPasswordIfMissingWithDefault(DefaultWizard.java:158)
  169. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForDbCredentialsIfMissing(DefaultWizard.java:886)
  170. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForMySQLDb(DefaultWizard.java:706)
  171. at org.openmrs.maven.plugins.utility.DefaultWizard.promptForDb(DefaultWizard.java:679)
  172. at org.openmrs.maven.plugins.Setup.setup(Setup.java:203)
  173. ... 24 more
  174. [ERROR]
  175. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  176. [ERROR]
  177. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  178. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  179.  
  180. SAM@USER MINGW64 ~/servers (master)
  181. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement