diff options
Diffstat (limited to 'java/sca/itest/distribution/webapp-helloworld-jsp')
-rw-r--r-- | java/sca/itest/distribution/webapp-helloworld-jsp/pom.xml | 110 |
1 files changed, 87 insertions, 23 deletions
diff --git a/java/sca/itest/distribution/webapp-helloworld-jsp/pom.xml b/java/sca/itest/distribution/webapp-helloworld-jsp/pom.xml index 495dc636a7..bd2232e3d8 100644 --- a/java/sca/itest/distribution/webapp-helloworld-jsp/pom.xml +++ b/java/sca/itest/distribution/webapp-helloworld-jsp/pom.xml @@ -35,14 +35,14 @@ <artifactId>itest-bin-distro-unzip</artifactId>
<type>pom</type>
<version>2.0-SNAPSHOT</version>
- </dependency>
+ </dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>sample-helloworld-jsp</artifactId>
<type>war</type>
<version>2.0-SNAPSHOT</version>
- </dependency>
+ </dependency>
<dependency>
<groupId>junit</groupId>
@@ -58,8 +58,16 @@ <scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-2.0</artifactId>
+ <version>6.1.19</version>
+ <type>pom</type>
+ <scope>compile</scope>
+ </dependency>
+
</dependencies>
-
+
<build>
<plugins>
<plugin>
@@ -85,38 +93,94 @@ <configuration>
<wait>false</wait>
<container>
- <containerId>jetty6x</containerId>
- <type>embedded</type>
- <systemProperties>
- <org.apache.commons.logging.Log>org.apache.commons.logging.impl.SimpleLog</org.apache.commons.logging.Log>
- </systemProperties>
+ <!--
+ you can call the containerid anything that doesn't start with 'jetty' (Jetty will work fine)
+ if it starts with 'jetty' it will use the automatic dependency mechanism which you don't
+ want
+ -->
+ <containerId>latest-jetty6x</containerId>
+ <implementation>org.codehaus.cargo.container.jetty.Jetty6xEmbeddedLocalContainer
+ </implementation>
+ <type>embedded</type>
+ <dependencies>
+ <!-- add all the other dependencies that the embedded jetty server needs here -->
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-2.0</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-runtime</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-compiler</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>tomcat</groupId>
+ <artifactId>jasper-compiler-jdt</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-api-2.0</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-el</groupId>
+ <artifactId>commons-el</artifactId>
+ </dependency>
+
+ </dependencies>
</container>
- <!-- container>
+ <!-- Uncomment the following to enable Tomcat container -->
+ <!--
+ <container>
<containerId>tomcat6x</containerId>
<home>/Tomcat/apache-tomcat-6.0.18</home>
- </container -->
+ </container>
+ -->
<configuration>
+ <implementation>org.codehaus.cargo.container.jetty.Jetty6xEmbeddedStandaloneLocalConfiguration
+ </implementation>
+
<home>${project.build.directory}/cargo-jetty</home>
<properties>
- <!-- NOTE: remote debugging doesn't work with the embedded Jetty container. To remote debug
- uncomment/comment the container above to be the Tomcat container and set home to point
- to your local Tomcat installation -->
- <cargo.jvmargs><![CDATA[-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y]]></cargo.jvmargs>
+ <!--
+ NOTE: remote debugging doesn't work with the embedded Jetty container. To remote debug
+ uncomment/comment the container above to be the Tomcat container and set home to point
+ to your local Tomcat installation
+ -->
+ <cargo.jvmargs><![CDATA[-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y]]></cargo.jvmargs>
<cargo.servlet.port>8085</cargo.servlet.port>
<context>helloworld-jsp</context>
</properties>
<deployables>
- <deployable>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>sample-helloworld-jsp</artifactId>
- <type>war</type>
- <properties>
- <context>helloworld-jsp</context>
- </properties>
- </deployable>
+ <deployable>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>sample-helloworld-jsp</artifactId>
+ <type>war</type>
+ <properties>
+ <context>helloworld-jsp</context>
+ </properties>
+ </deployable>
</deployables>
</configuration>
- </configuration>
+ </configuration>
</plugin>
</plugins>
|