omrs-create-module fails with Could not find goal 'omrs-create-module' in plugin org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.8.2

Hi everyone,

Sorry if that is a stupid question. I am new to OpenMRS. I have just finished building and running the basicexample as per the OpenMRS SDK Installation topic. Everything is running fine, excepts that I have a web page with no login field.

So I am now following the indications in Making your First Module and I am struggling with the omrs-create-module command.

Not sure what the right format should be.

For now I have: mvn openmrs-sdk:omrs-create-module

Scanning for projects… [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Basicexample [INFO] Basicexample API [INFO] Basicexample OMOD [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Basicexample … SKIPPED [INFO] Basicexample API … SKIPPED [INFO] Basicexample OMOD … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.548 s [INFO] Finished at: 2017-04-05T15:37:46-04:00 [INFO] Final Memory: 9M/245M [INFO] ------------------------------------------------------------------------ [ERROR] Could not find goal ‘omrs-create-module’ in plugin org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.8.2 among available goals info, add-feature, clone, pull, create-project, run, reset, pr, delete, deploy, build-distro, build, release, watch, run-tomcat, watch-owa, setup-sdk, help, fetch, undeploy, setup, unwatch -> [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]

And I don’t know what I should do with that. Thank you for your help!


Are you following this documentation?

I followed everything in your link up to the ‘basic usage’ section included. After that, I am trying to run the omrs-create-module mentioned on that page:

Should I not? Thanks!

The gitbook documentation needs to be updated. According to this: you should instead use create-project as explained at