You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2011/10/28 23:41:15 UTC

svn commit: r1190600 - in /axis/axis2/java/rampart/trunk: modules/rampart-integration/pom.xml pom.xml release-docs/README.txt

Author: veithen
Date: Fri Oct 28 21:41:15 2011
New Revision: 1190600

URL: http://svn.apache.org/viewvc?rev=1190600&view=rev
Log:
Fixed the build on older JDK 1.5 versions.

Modified:
    axis/axis2/java/rampart/trunk/modules/rampart-integration/pom.xml
    axis/axis2/java/rampart/trunk/pom.xml
    axis/axis2/java/rampart/trunk/release-docs/README.txt

Modified: axis/axis2/java/rampart/trunk/modules/rampart-integration/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/modules/rampart-integration/pom.xml?rev=1190600&r1=1190599&r2=1190600&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/modules/rampart-integration/pom.xml (original)
+++ axis/axis2/java/rampart/trunk/modules/rampart-integration/pom.xml Fri Oct 28 21:41:15 2011
@@ -75,6 +75,18 @@
                             </artifactItems>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>copy-endorsed</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <includeGroupIds>org.apache.xerces,org.apache.xalan</includeGroupIds>
+                            <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
+                            <stripVersion>true</stripVersion>
+                        </configuration>
+                    </execution>
                 </executions>
             </plugin>
             <plugin>
@@ -560,6 +572,13 @@
                     </execution>
                 </executions>
             </plugin-->
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <!-- Add the Xerces/Xalan versions expected by OpenSAML to the boot classpath so that the build succeeds on older 1.5 JDKs -->
+                    <argLine>-Xbootclasspath/p:${project.build.directory}/endorsed/xml-apis.jar${path.separator}${project.build.directory}/endorsed/xercesImpl.jar${path.separator}${project.build.directory}/endorsed/resolver.jar${path.separator}${project.build.directory}/endorsed/serializer.jar${path.separator}${project.build.directory}/endorsed/xalan.jar</argLine>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 

Modified: axis/axis2/java/rampart/trunk/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/pom.xml?rev=1190600&r1=1190599&r2=1190600&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/pom.xml (original)
+++ axis/axis2/java/rampart/trunk/pom.xml Fri Oct 28 21:41:15 2011
@@ -153,6 +153,10 @@
                     <artifactId>axis2-mar-maven-plugin</artifactId>
                     <version>1.5.4</version>
                 </plugin>
+                <plugin>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <version>2.10</version>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>

Modified: axis/axis2/java/rampart/trunk/release-docs/README.txt
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/release-docs/README.txt?rev=1190600&r1=1190599&r2=1190600&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/release-docs/README.txt (original)
+++ axis/axis2/java/rampart/trunk/release-docs/README.txt Fri Oct 28 21:41:15 2011
@@ -64,14 +64,18 @@ http://www.bouncycastle.org/latest_relea
 lib/security directory as the last line.
 security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider
 
-Test cases written for SAML 2.0 support requires endorsing the JDK's default JAXP 
+On older JDKs, the SAML 2.0 support requires endorsing the JDK's default JAXP 
 implementation with Xerces(http://xerces.apache.org/mirrors.cgi#binary) and 
-Xalan(http://xml.apache.org/xalan-j/downloads.html#latest-release). So before building Rampart from the
-source distribution, you need to copy resolver-x.x.x.jar, serializer-x.x.x.jar, xercesImpl-x.x.x.jar 
+Xalan(http://xml.apache.org/xalan-j/downloads.html#latest-release). To do that,
+you need to copy resolver-x.x.x.jar, serializer-x.x.x.jar, xercesImpl-x.x.x.jar 
 and xml-apis-x.x.x.jar from the Xerces binary distribution and xalan-x.x.x.jar from the xalan binary 
 distribution to the endorsed directory. If you are using Sun JDK, endorsed directory is located at 
 $JAVA_HOME/jre/lib/endorsed.
 
+Note that during the build these JARs are added automatically to the boot classpath
+of the JVM running the unit tests. Therefore this is only necessary at runtime, not
+when building Rampart. 
+
 When Rampart is deployed in a particular application server, please refer to the endorsing mechanism 
 recommended for that server and endorse the JAXP implementation using the set of jars mentioned above.