]> source.dussan.org Git - archiva.git/commitdiff
add some configuration to run unit tests with embeded tomcat: jetty still default
authorOlivier Lamy <olamy@apache.org>
Sun, 9 Oct 2011 14:12:24 +0000 (14:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 9 Oct 2011 14:12:24 +0000 (14:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1180621 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml

index 90f06a75bab29826c722673b6b421efbdd9b4297..c517f1c3f3dc4f4cbfccc89fb136e7f3cc99b546 100644 (file)
@@ -31,7 +31,9 @@
   <properties>
     <jettyVersion>7.4.5.v20110725</jettyVersion>
     <archiva.baseRestUrl></archiva.baseRestUrl>
+    <tomcatVersion>7.0.21</tomcatVersion>
     <rest.admin.pwd></rest.admin.pwd>
+    <test.useTomcat>false</test.useTomcat>
   </properties>
 
   <dependencies>
       <scope>test</scope>
     </dependency>
 
+    <dependency>
+      <groupId>org.apache.tomcat</groupId>
+      <artifactId>tomcat-servlet-api</artifactId>
+      <version>${tomcatVersion}</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.tomcat.embed</groupId>
+      <artifactId>tomcat-embed-core</artifactId>
+      <version>${tomcatVersion}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.tomcat</groupId>
+      <artifactId>tomcat-juli</artifactId>
+      <version>${tomcatVersion}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.tomcat.embed</groupId>
+      <artifactId>tomcat-embed-logging-juli</artifactId>
+      <version>${tomcatVersion}</version>
+      <scope>test</scope>
+    </dependency>
+
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
             <derby.system.home>${project.build.directory}/appserver-base</derby.system.home>
             <archiva.baseRestUrl>${archiva.baseRestUrl}</archiva.baseRestUrl>
             <rest.admin.pwd>${rest.admin.pwd}</rest.admin.pwd>
+            <test.useTomcat>${test.useTomcat}</test.useTomcat>
           </systemPropertyVariables>
         </configuration>
       </plugin>