mvn clean install hanging when building radiology module

Hi all

I have been having a blocker since yesteday night, I had to mention it in scrum but i was using a friends machine that had a bad keyboard, so it was easier to type “blockers: none” instead of my long blocker, so i decided to create a thread instead.

I have added a new pojo, in the radiology module to deal with report templates and also went ahead an created DAOs and Services. You can see that in my commit. I was running “mvn clean install” on every change that i made and when i declared inside the moduleApplicaitonContext.xml as is done with other services in the module, “mvn clean install hangs” at this point


Running org.openmrs.module.radiology.dicom.DicomWebViewerTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.98 sec Running org.openmrs.module.radiology.dicom.code.ScheduledProcedureStepStatusTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.openmrs.module.radiology.dicom.code.PerformedProcedureStepStatusTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running

From the above it shows that it hangs while trying to execute the RadiologyStudyServiceComponentTest, i did not do any modification in that file, but am guessing its because that is the first test that actually makes use of the application context so maybe the error is with my application context. But i have checked what i did and even started over multiple times but couldn’t find or fix any errors. You can see the changes i made in the application context at this line. I just followed what was done for other services and did the same for my, but that makes mvn install to hang. Please i need your help as to what might be causing this. Its a huge blocker for me.

cc @teleivo @judy @sunbiz @bgevam

enable logging and tell us what you see. set to “ON” at

Hi @teleivo here is a the output after waiting for 45min,

Hey @ivange94 I’m repeating what I posted on the irc here, so that the community members can give suitable inputs as well

You can manually run the failing test run it in Intellij by going to the test class, right click and “Run RadiologyStudyServiceComponentTest”. It will run the tests without building the module. You can also attach a debugger by choosing to “Debug RadiologyStudyServiceComponentTest” instead of running it. Add some breakpoints before the line that causes the applicationContext loading issues and you can get a deeper picture what’s causing it to hang/fail. :slight_smile:

@ivange94 try these changes to see if they fix it: