Cargo

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

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 0.3.1-maven2
  • Fix Version/s: None
  • Component/s: Maven2
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

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>

Activity

Hide
Eduard Weiss added a comment -

Is there a workaround to overwrite the web.xml?

Show
Eduard Weiss added a comment - Is there a workaround to overwrite the web.xml?
Hide
Savas Ali Tokmen added a comment -

I think you can try overriding via http://cargo.codehaus.org/Configuration+files+option

Show
Savas Ali Tokmen added a comment - I think you can try overriding via http://cargo.codehaus.org/Configuration+files+option

People

Vote (4)
Watch (4)

Dates

  • Created:
    Updated: