Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3751

Saying that a module requires OpenMRS 1.9.2-SNAPSHOT fails

    XMLWordPrintable

    Details

      Description

      In my module's pom.xml I have

      <openMRSVersion>1.9.2-SNAPSHOT</openMRSVersion>

      And in config.xml I have

      <require_version>${openMRSVersion}</require_version>

      OpenMRS treats this as if my modules requires a version between "1.9.2" and "SNAPSHOT" (which ends up treated as ""), so my module fails to start with the message:

      WARN - ModuleFactory.startModuleInternal(603) |2012-10-08 23:16:49,580| Error while trying to start module: emr
      org.openmrs.module.ModuleException: Module requires version between 1.9.2 and ,  Current code version is 1.9.2.0
      	at org.openmrs.module.ModuleUtil.checkRequiredVersion(ModuleUtil.java:322)
      	at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:487)
      	at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)
      

      We should handle the special-case of "-SNAPSHOT" nicely.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jkondrat Jakub Kondrat
                Reporter:
                darius Darius Jazayeri
                Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 hours Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 5 hours
                    1d 5h