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

jetty-maven-plugin invalid configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: Platform 1.12.0
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      mvn jetty:run fails with "Error configuring: org.mortbay.jetty:jetty-maven-plugin. Reason: ERROR: Cannot override read-only parameter: webXml in goal: jetty:run".

      I assume configuration for jetty-maven-plugin should look like

      <configuration>
                     <webApp>
                     	  <descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
                        <contextPath>/${webapp.name}</contextPath>
                        <!--enable reloading static resources -->
                        <overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
                        <extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
                     </webApp>
                     <scanIntervalSeconds>10</scanIntervalSeconds>
                     <scanTargets>
                        <scanTarget>../api/target/classes</scanTarget>
                        <scanTarget>../web/target/classes</scanTarget>
                     </scanTargets>
                     <systemProperties>
                         <systemProperty>
                             <name>OPENMRS_INSTALLATION_SCRIPT</name>
                             <value>${OPENMRS_INSTALLATION_SCRIPT}</value>
                         </systemProperty>
                     </systemProperties>
                  </configuration>
      

        Attachments

          Activity

            People

            Assignee:
            sintjuri Yuri Sintyaev
            Reporter:
            sintjuri Yuri Sintyaev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m