Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. harisu@localhost:~$ mvn openmrs-sdk:setup
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------------------------------------------------------------
  5. [INFO] Building Maven Stub Project (No POM) 1
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO]
  8. [INFO] --- openmrs-sdk-maven-plugin:3.4.6:setup (default-cli) @ standalone-pom ---
  9.  
  10. Setting up a new server...
  11.  
  12. Specify server id (-DserverId) (default: 'server'): ^Charisu@localhost:~$ mvn openmrs-s^C:setup
  13. harisu@localhost:~$ mvn -e openmrs-sdk:setup
  14. [INFO] Error stacktraces are turned on.
  15. [INFO] Scanning for projects...
  16. [INFO]
  17. [INFO] ------------------------------------------------------------------------
  18. [INFO] Building Maven Stub Project (No POM) 1
  19. [INFO] ------------------------------------------------------------------------
  20. [INFO]
  21. [INFO] --- openmrs-sdk-maven-plugin:3.4.6:setup (default-cli) @ standalone-pom ---
  22.  
  23. Setting up a new server...
  24.  
  25. Specify server id (-DserverId) (default: 'server'):
  26.  
  27. You can setup the following servers:
  28. 1) Distribution
  29. 2) Platform
  30.  
  31. Which one do you choose? [1/2]: 2
  32.  
  33. You can deploy the following versions of a platform:
  34. 1) 2.1.0-SNAPSHOT
  35. 2) 2.0.1
  36. 3) 1.12.0
  37. 4) 1.11.7
  38. 5) 1.10.4
  39. 6) 1.9.11
  40. 7) Other...
  41.  
  42. Which one do you choose? [1/2/3/4/5/6/7]: 2
  43. [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.0.1:war
  44. [INFO] Copying openmrs-webapp-2.0.1.war to /home/harisu/openmrs/server/openmrs-2.0.1.war
  45.  
  46. If you want to enable remote debugging by default when running the server,
  47. specify the port number here (e.g. 1044). Leave blank to disable debugging.
  48. (Do not do this on a production server) (default: 'no debugging'): 1044
  49.  
  50. Which database would you like to use?:
  51. 1) H2
  52. 2) MySQL 5.6 (requires pre-installed MySQL 5.6)
  53. 3) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
  54. 4) Existing docker container (requires pre-installed Docker)
  55.  
  56. Which one do you choose? [1/2/3/4]: 2
  57.  
  58. The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'): jdbc:msql://localhost:3066/OPENMRS
  59.  
  60. Please specify database username (-DdbUser) (default: 'root'):
  61. Please specify database password (-DdbPassword) (default: ' '):
  62. [INFO] ------------------------------------------------------------------------
  63. [INFO] BUILD FAILURE
  64. [INFO] ------------------------------------------------------------------------
  65. [INFO] Total time: 01:24 min
  66. [INFO] Finished at: 2016-11-23T12:04:18+00:00
  67. [INFO] Final Memory: 22M/243M
  68. [INFO] ------------------------------------------------------------------------
  69. [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.4.6:setup (default-cli) on project standalone-pom: Failed to setup server: Failed to connect to the specified database jdbc:msql://localhost:3066/OPENMRS -> [Help 1]
  70. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.4.6:setup (default-cli) on project standalone-pom: Failed to setup server
  71. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
  72. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  73. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  74. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
  75. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
  76. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  77. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  78. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
  79. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
  80. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
  81. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
  82. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  83. at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
  84. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  85. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  86. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  87. at java.lang.reflect.Method.invoke(Method.java:606)
  88. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  89. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  90. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  91. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  92. Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to setup server
  93. at org.openmrs.maven.plugins.Setup.setup(Setup.java:216)
  94. at org.openmrs.maven.plugins.Setup.executeTask(Setup.java:450)
  95. at org.openmrs.maven.plugins.AbstractTask.execute(AbstractTask.java:174)
  96. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
  97. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
  98. ... 20 more
  99. Caused by: java.lang.IllegalStateException: Failed to connect to the specified database jdbc:msql://localhost:3066/OPENMRS
  100. at org.openmrs.maven.plugins.Setup.setup(Setup.java:181)
  101. ... 24 more
  102. [ERROR]
  103. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  104. [ERROR]
  105. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  106. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement