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

Allow jetty context to be configured

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.8.0
    • Fix Version/s: OpenMRS 1.8.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      The context (and runtime properties file name) for the maven jetty plugin is currently configured in the webapp pom.xml with the contextPath property.
      This should use the webapp.name property (defaulting to openmrs), currently only used to specify the built war name.
      Using the webapp.name property allows setting the context (and runtime properties) without modifying the pom.xml:

      mvn jetty:run -Dwebapp.name=openmrscustom
      

      To allow this, the maven jetty plugin config should instead use the following contextPath:

       
      <contextPath>/${webapp.name}</contextPath>
      

        Attachments

          Activity

            People

            • Assignee:
              mblanchette Matthew Blanchette
              Reporter:
              mblanchette Matthew Blanchette
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: