NigeriaEMR Custom Module won't start after overiding login page

Hello guys! Am having difficulty starting my module. The module is a custom module use to customized our distribution. The module builds successfully but when loaded it load and display this message (Module Nigeriaemr has been loaded). Also when clicking on start to run the module it displays this message (Error while starting module nigeriaemr). Am working on overriding the reference application login page & controller with a custom login page.

Using OpenMRS Version: 2.0.6 Build 453af9

Reference App 2.7.0

Module repo:

Log file here >>>

I would really appreciate your feedback on this.

Regards Gibril

sorry about that, let me just tag these guys maybe they could offer some help.

@tendomart, @dkayiwa, @k.joseph, @ssmusoke

Ensure that the openmrs api dependencies in your pom.xml files have a scope set to provided

Actually I just checked and they all have a scope set to provided unless otherwise

@irenyak1 Are you looking at this: and this?

No i had not looked at the pom file for the omod. I had looked at the one for the api and I thought the version part was ok as it was. Does he have to change it to scope instead? :slight_smile:

Thank you for the feedback @dkayiwa and @irenyak1

I have modifided the pom.xml files and run the project again but this time i encounter the following errors below:

[INFO] — maven-compiler-plugin:2.0.2:compile (default-compile) @ nigeriaemr-omod —

[INFO] Compiling 22 source files to /home/heisenberg/eclipse-workspace/test001/omod/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:


[INFO] Nigeriaemr API … SUCCESS [12.498s]

[INFO] Nigeriaemr OMOD … FAILURE [7.770s]

[INFO] Nigeriaemr … SKIPPED

[INFO] ------------------------------------------------------------------------


[INFO] ------------------------------------------------------------------------

[INFO] Total time: 21.047s

[INFO] Finished at: Fri Dec 14 11:03:37 UTC 2018

[INFO] Final Memory: 65M/981M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project nigeriaemr-omod: Compilation failure

[ERROR] /home/heisenberg/eclipse-workspace/test001/omod/src/main/java/org/openmrs/module/nigeriaemr/ndrUtils/[12,28] error: package org.openmrs.parameter does not exist

[ERROR] -> [Help 1]


[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] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1]


[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :nigeriaemr-omod

Are all your changes committed?

I have commit the changes below:

Did you fix this?

@dkayiwa No not yet fixed, i have sent the committed version on my previous reply.


The version here: should be 1.0.0-SNAPSHOT

Also get rid of this: