I am trying to implement the solution mentioned in How to specify the jetty-env.xml file for the Maven Cargo plugin for Jetty?
However, I came across something even more fundamental: My Cargo simply does not generate any xml context.
<plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.2.1</version> <configuration> <container> <containerId>jetty6x</containerId> <type>embedded</type> </container> <configuration> <properties> <cargo.servlet.port>${itest.webapp.port}</cargo.servlet.port> <cargo.jetty.createContextXml>true</cargo.jetty.createContextXml> </properties> <deployables> <deployable> <groupId>${project.groupId}</groupId> <artifactId>myApp-web</artifactId> <type>war</type> <properties> <context>/myApp</context> </properties> </deployable> </deployables> </configuration> </configuration> <executions> <execution> <id>start-container</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop-container</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin>
The main idea is that we provide a custom context.xml to replace the created one. However, when I try, I cannot find any XML context generated by Cargo (note that I noticed user configuration files, and with load.jetty.createContextXml - true)
I'm not sure if this is my setup problem, causing a non-generated context, or the context is generated somewhere that I forgot. I checked at target / cargo / and temp directory that the load expanded my WAR, not a single place contains an xml context.
(I am using Maven 2.2.1, Cargo 1.2.1, JDK 6)
maven-2 jetty cargo maven-cargo
Adrian shum
source share