Development Environment setup error Ubuntu 22.04 LTS

Apache Maven 3.6.3

Hi, am new to the community and have been setting up the development environment, i have install all the necessary tools upto installing openMRS SDK , and have also set up the openMRS server with a success message of "Server configured successfully, path: /root/openmrs/server4".

But when i try to RUN the server, an error has consistently shown up;

The goal you specified requires a project to execute but there is no POM in this directory (/root). Please verify you invoked Maven from the correct directory. -> [Help 1]

i have re installed maven thinking the POM file was accidentally deleted but al in vain Please where am i going . thanks

Kindly which command did you run to start the server? Besides, kindly share the entire error log in your terminal using pastebin

oo this is the command am using ; mvn openmrs-sdk:run -DserverId = your_server_id so replace your_server_id with server4. the error log is;

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.079 s
[INFO] Finished at: 2022-06-27T20:58:19+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/root). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/root). Please verify you invoked Maven from the correct directory.
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:85)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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/MissingProjectException

thanks

DserverId is a placeholder of your server name. Alternatively you can simply run mvn openmrs-sdk:run and select your server id from the list that is provided.

1 Like
mvn openmrs-sdk:run -DserverId = your_server_id so replace your_server_id with server4

is this the the command you ran ??

can you just run mvn openmrs-sdk:run and select the server id interactively ??

Perfect, that worked well to completion. thanks @jwnasambu

wow, great, this worked perfectly fine and solved it. thanks @mozzy

1 Like