Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.3.1-maven2
-
Fix Version/s: None
-
Component/s: Maven2
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
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>
Is there a workaround to overwrite the web.xml?