Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- harisu@localhost:~$ mvn openmrs-sdk:setup
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building Maven Stub Project (No POM) 1
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- openmrs-sdk-maven-plugin:3.4.6:setup (default-cli) @ standalone-pom ---
- Setting up a new server...
- Specify server id (-DserverId) (default: 'server'): ^Charisu@localhost:~$ mvn openmrs-s^C:setup
- harisu@localhost:~$ mvn -e openmrs-sdk:setup
- [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.4.6: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]: 2
- You can deploy the following versions of a platform:
- 1) 2.1.0-SNAPSHOT
- 2) 2.0.1
- 3) 1.12.0
- 4) 1.11.7
- 5) 1.10.4
- 6) 1.9.11
- 7) Other...
- Which one do you choose? [1/2/3/4/5/6/7]: 2
- [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.0.1:war
- [INFO] Copying openmrs-webapp-2.0.1.war to /home/harisu/openmrs/server/openmrs-2.0.1.war
- 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'): 1044
- Which database would you like to use?:
- 1) H2
- 2) MySQL 5.6 (requires pre-installed MySQL 5.6)
- 3) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
- 4) Existing docker container (requires pre-installed Docker)
- Which one do you choose? [1/2/3/4]: 2
- The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'): jdbc:msql://localhost:3066/OPENMRS
- Please specify database username (-DdbUser) (default: 'root'):
- Please specify database password (-DdbPassword) (default: ' '):
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 01:24 min
- [INFO] Finished at: 2016-11-23T12:04:18+00:00
- [INFO] Final Memory: 22M/243M
- [INFO] ------------------------------------------------------------------------
- [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]
- 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
- 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:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- 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:216)
- at org.openmrs.maven.plugins.Setup.executeTask(Setup.java:450)
- at org.openmrs.maven.plugins.AbstractTask.execute(AbstractTask.java:174)
- 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.IllegalStateException: Failed to connect to the specified database jdbc:msql://localhost:3066/OPENMRS
- at org.openmrs.maven.plugins.Setup.setup(Setup.java:181)
- ... 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement