I have the following context.xml in webapp / META-INF /. This is used by tomcat to determine the value to be understood using Spring with Property
<?xml version="1.0" encoding="UTF-8"?> <Context> <Parameter name="si.host" value="super.com" override="false"/> </Context>
Right now I'm trying to deploy webapp with the maven plugin:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.26</version> <configuration> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>8080</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <jettyEnvXml>${basedir}\src\test\resources\server\jetty\jetty-env.xml</jettyEnvXml> <jettyConfig>${basedir}\src\test\resources\server\jetty\jetty.xml</jettyConfig > <contextPath>/myapp</contextPath> <webApp>target/myapp.war</webApp> <stopKey>foo</stopKey> <stopPort>9999</stopPort> </configuration> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase> <goals> <goal>run</goal> </goals> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> <daemon>true</daemon> </configuration> </execution> <execution> <id>stop-jetty</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin>
How to add this parameter to jetty.xml?
I already dig into their documentation, and here in google, but I didn’t understand anything. Thanks in advance for your help.
source share