Author: veithen
Date: Mon Oct  6 13:20:40 2008
New Revision: 702249

URL: http://svn.apache.org/viewvc?rev=702249&view=rev
Log:
Transport tests: Added a profile to run the tests with Geronimo's 
implementation of JavaMail and JAF.

Modified:
    webservices/commons/trunk/modules/transport/modules/tests/pom.xml

Modified: webservices/commons/trunk/modules/transport/modules/tests/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/tests/pom.xml?rev=702249&r1=702248&r2=702249&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/tests/pom.xml (original)
+++ webservices/commons/trunk/modules/transport/modules/tests/pom.xml Mon Oct  
6 13:20:40 2008
@@ -62,6 +62,13 @@
             <artifactId>axis2-transport-testkit</artifactId>
             <version>${pom.version}</version>
             <scope>test</scope>
+            <exclusions>
+                <!-- We want to choose the JavaMail implementation ourselves 
-->
+                <exclusion>
+                    <groupId>javax.mail</groupId>
+                    <artifactId>mail</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         
         <!-- HTTP transport tests -->
@@ -102,6 +109,13 @@
             <artifactId>activemq-core</artifactId>
             <version>5.1.0</version>
             <scope>test</scope>
+            <exclusions>
+                <!-- We want to choose the JAF implementation ourselves -->
+                <exclusion>
+                    <groupId>javax.activation</groupId>
+                    <artifactId>activation</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         
         <!-- Mail transport tests -->
@@ -116,9 +130,54 @@
             <artifactId>greenmail</artifactId>
             <version>1.3</version>
             <scope>test</scope>
+            <exclusions>
+                <!-- We want to choose the JavaMail implementation ourselves 
-->
+                <exclusion>
+                    <groupId>javax.mail</groupId>
+                    <artifactId>mail</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
     </dependencies>
 
+    <profiles>
+        <profile>
+            <id>geronimo</id>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.axis2</groupId>
+                    <artifactId>axis2-kernel</artifactId>
+                    <version>${pom.version}</version>
+                    <scope>test</scope>
+                    <exclusions>
+                        <exclusion>
+                            <groupId>javax.mail</groupId>
+                            <artifactId>mail</artifactId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-activation_1.1_spec</artifactId>
+                    <version>1.0.2</version>
+                    <scope>test</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-javamail_1.4_spec</artifactId>
+                    <version>1.5</version>
+                    <scope>test</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.javamail</groupId>
+                    <artifactId>geronimo-javamail_1.4_provider</artifactId>
+                    <version>1.5</version>
+                    <scope>test</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
+
     <repositories>
         <!-- this is for qpid -->
         <repository>


Reply via email to