servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r681310 - /servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml
Date Thu, 31 Jul 2008 09:34:35 GMT
Author: gnodet
Date: Thu Jul 31 02:34:34 2008
New Revision: 681310

URL: http://svn.apache.org/viewvc?rev=681310&view=rev
Log:
SM-1442: Allow ServiceMix to build using the ibm jdk

Modified:
    servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml

Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml?rev=681310&r1=681309&r2=681310&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml (original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml Thu Jul 31 02:34:34 2008
@@ -484,4 +484,81 @@
         <layout>legacy</layout>
     </repository>
   </repositories>
+
+  <profiles>
+    <profile>
+      <id>ibmjdk</id>
+      <activation>
+        <property>
+          <name>java.vendor</name>
+          <value>IBM Corporation</value>
+        </property>
+      </activation>
+      <!--
+        Add the Sun jaxp-ri as a dependency when using the ibm jdk, so that
+        cxf's dependency on the Sun saaj can work with the ibm jdk.
+      -->
+      <dependencies>
+        <dependency>
+          <groupId>com.sun.xml.parsers</groupId>
+          <artifactId>jaxp-ri</artifactId>
+          <version>1.4.2</version>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <includes>
+                <include>**/*Test*</include>
+              </includes>
+              <excludes>
+                <exclude>**/*$*</exclude>
+              </excludes>
+              <forkMode>${surefire.fork.mode}</forkMode>
+              <systemProperties>
+                <property>
+                  <name>derby.system.home</name>
+                  <value>${basedir}/target/derby</value>
+                </property>
+                <!--
+                  With Maven 2.0.7, it's possible that jaxp-ri will be placed
+                  in front of woodstox on the classpath. If this happens, cxf
+                  will not use woodstox, causing test failures (e.g.,
+                  CxfBcProviderConsumerMtomTest). So, set these properties to
+                  ensure woodstox is used.  Maven 2.0.9 doesn't require this
+                  work-around since it consistently places jaxp-ri at the end
+                  of the dependencies.
+                -->
+                <property>
+                  <name>javax.xml.stream.XMLInputFactory</name>
+                  <value>com.ctc.wstx.stax.WstxInputFactory</value>
+                </property>
+                <property>
+                  <name>javax.xml.stream.XMLOutputFactory</name>
+                  <value>com.ctc.wstx.stax.WstxOutputFactory</value>
+                </property>
+                <!--
+                  To work around an issue with a couple of the security tests
+                  we reorder the preference order of two of the jre's
+                  Cryptography Package Providers defined in the master
+                  security properties file.
+                -->
+                <property>
+                  <name>java.security.properties</name>
+                  <value>${basedir}/target/test-classes/ibm.security</value>
+                </property>
+                <property>
+                    <name>javax.xml.transform.TransformerFactory</name>
+                    <value>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</value>
+                </property>
+              </systemProperties>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>



Mime
View raw message