Author: veithen Date: Tue Sep 11 06:54:05 2012 New Revision: 1383258 URL: http://svn.apache.org/viewvc?rev=1383258&view=rev Log: AXIS-2875: Set the appropriate system properties so that the SAAJ unit tests can be executed on Java 1.6 (and actually test the Axis SAAJ implementation). This is necessary because Axis doesn't contain META-INF/services/* resources for SAAJ. Note that we don't want to add these files because this would likely cause issues for applications that use both Axis 1.x and SAAJ 1.3.
Modified: axis/axis1/java/trunk/pom.xml Modified: axis/axis1/java/trunk/pom.xml URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/pom.xml?rev=1383258&r1=1383257&r2=1383258&view=diff ============================================================================== --- axis/axis1/java/trunk/pom.xml (original) +++ axis/axis1/java/trunk/pom.xml Tue Sep 11 06:54:05 2012 @@ -112,10 +112,29 @@ <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.11</version> + <configuration> + <systemPropertyVariables> + <!-- Axis doesn't contain META-INF/services/* files for SAAJ. Instead, the SAAJ API + library provided by Axis uses the Axis SAAJ implementation by default. That's an issue on Java 1.6 + because the SAAJ API provided by the JRE will be used. Therefore we need to set this system property + to execute the SAAJ unit tests on Java 1.6. --> + <javax.xml.soap.MessageFactory>org.apache.axis.soap.MessageFactoryImpl</javax.xml.soap.MessageFactory> + <javax.xml.soap.SOAPFactory>org.apache.axis.soap.SOAPFactoryImpl</javax.xml.soap.SOAPFactory> + <javax.xml.soap.SOAPConnectionFactory>org.apache.axis.soap.SOAPConnectionFactoryImpl</javax.xml.soap.SOAPConnectionFactory> + </systemPropertyVariables> + </configuration> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>2.11</version> + <configuration> + <systemPropertyVariables> + <!-- See the corresponding surefire configuration for more information about this. --> + <javax.xml.soap.MessageFactory>org.apache.axis.soap.MessageFactoryImpl</javax.xml.soap.MessageFactory> + <javax.xml.soap.SOAPFactory>org.apache.axis.soap.SOAPFactoryImpl</javax.xml.soap.SOAPFactory> + <javax.xml.soap.SOAPConnectionFactory>org.apache.axis.soap.SOAPConnectionFactoryImpl</javax.xml.soap.SOAPConnectionFactory> + </systemPropertyVariables> + </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId>