Deploying in the server

how to deploy openmrs.war into a jetty server I downloaded mysql 8 version latest and was executing this command mvn jetty:run

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for OpenMRS 2.4.0-SNAPSHOT: [INFO] [INFO] OpenMRS … SKIPPED [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] openmrs-liquibase … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.868 s [INFO] Finished at: 2020-05-23T13:38:23-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix ‘jetty’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Administrator.m2\repository), openmrs-repo (, central (] -> [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]

Run the command from the webapp folder.

Yeah I figured it out Thanks

1 Like

@adityac1305 you could also add a few steps that helped solve this here so as to help others

In users of My Computer I had the Name of the directory Aditya Chaudhari which had a space in between. So when we run the openmrs cloned repository it gives us error as we refer the user directory as Aditya%20Chaudhari which creates the error of no path found properly. And after yo are done with this then you can change the directory with cd webapp and run the jetty command mvn jetty:run . In this way I was able to solve my issue and error.

1 Like

Did you succeed and run it, personally i have been running a war file today all went fine but landed into server error logs which am debugging currently, feel free to take a look Logs

Hi Sharif, There is probably some migration lock stuck into database and no new migration scripts can be launched. Truncate table to resolve this issue. And try running again