You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2013/01/05 20:07:48 UTC

svn commit: r1429361 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml

Author: veithen
Date: Sat Jan  5 19:07:48 2013
New Revision: 1429361

URL: http://svn.apache.org/viewvc?rev=1429361&view=rev
Log:
Fixed a build failure on IBM JRE.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml?rev=1429361&r1=1429360&r2=1429361&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml Sat Jan  5 19:07:48 2013
@@ -74,6 +74,30 @@
     <build>
         <plugins>
             <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>generate-test-resources</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <includeArtifactIds>xml-apis,xercesImpl</includeArtifactIds>
+                            <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
+                            <stripVersion>true</stripVersion>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <!-- This is necessary to execute the tests with the IBM JRE: we need to endorse the particular Xerces version
+                         we want to use because the JRE already contains Xerces. -->
+                    <argLine>${argLine} -Xbootclasspath/p:${project.build.directory}/endorsed/xml-apis.jar${path.separator}${project.build.directory}/endorsed/xercesImpl.jar</argLine>
+                </configuration>
+            </plugin>
+            <plugin>
                 <artifactId>maven-site-plugin</artifactId>
                 <configuration>
                     <skip>true</skip>