Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-556

Jetty6x- Allow configuration of all parameters that maven-jetty-plugin allows e.g. overrideWebXml

    Details

    • Type: Improvement
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 0.3.1-maven2
    • Fix versions: 1.0.2
    • Components: Maven2/Maven3
    • Labels:
      None

      Description

      I can't use cargo for jetty because I need to configure a custom realm (org.mortbay.jetty.security.HashUserRealm), webAppSourceDirectory, overrideWebXml and contextPath.

      I.e. I want to be able to do with cargo exactly what I can do with jetty:run - this is all in order to achieve automated integration testing.

      My maven-jetty-plugin pom:

      <plugin>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>maven-jetty-plugin</artifactId>
      <configuration>
      <webAppSourceDirectory>
      WebContent
      </webAppSourceDirectory>
      <overrideWebXml>
      test/resources/override-web.xml
      </overrideWebXml>
      <contextPath>/TAMSWeb</contextPath>
      <scanIntervalSeconds>0</scanIntervalSeconds>
      <scanTargetPatterns>
      <scanTargetPattern>
      <directory>WebContent</directory>
      <includes>
      <include>**/*.xml</include>
      <include>**/*.properties</include>
      </includes>
      </scanTargetPattern>
      </scanTargetPatterns>
      <userRealms>
      <userRealm
      implementation="org.mortbay.jetty.security.HashUserRealm">
      <!-- overrides websphere's default realm -->
      <name>default</name>
      <config>
      test/resources/jetty-user-realm.properties
      </config>
      </userRealm>
      </userRealms>
      <systemProperties>
      <property>
      <name>tams.environment</name>
      <value>local</value>
      </property>
      <property>
      <name>oracle.jdbc.J2EE13Compliant</name>
      <value>true</value>
      </property>
      <property>
      <name>oracle.jdbc.V8Compatible</name>
      <value>true</value>
      </property>
      </systemProperties>
      </configuration>
      </plugin>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              antonystubbs Antony Stubbs (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: