You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2011/11/04 15:25:49 UTC

svn commit: r1197582 - /cxf/trunk/distribution/src/main/release/samples/sts/pom.xml

Author: coheigea
Date: Fri Nov  4 14:25:49 2011
New Revision: 1197582

URL: http://svn.apache.org/viewvc?rev=1197582&view=rev
Log:
Fix to make the STS sample work with JDK 1.5

Modified:
    cxf/trunk/distribution/src/main/release/samples/sts/pom.xml

Modified: cxf/trunk/distribution/src/main/release/samples/sts/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/sts/pom.xml?rev=1197582&r1=1197581&r2=1197582&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/sts/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/sts/pom.xml Fri Nov  4 14:25:49 2011
@@ -94,6 +94,44 @@
     </build>
     <profiles>
         <profile>
+            <id>jdk15</id>
+            <activation>
+                <jdk>1.5</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>create-endorsed-dir</id>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>copy</goal>
+                                </goals>
+                                <configuration>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            <groupId>xerces</groupId>
+                                            <artifactId>xercesImpl</artifactId>
+                                            <outputDirectory>${basedir}/target/endorsed</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>xml-apis</groupId>
+                                            <artifactId>xml-apis</artifactId>
+                                            <version>1.3.04</version>
+                                            <outputDirectory>${basedir}/target/endorsed</outputDirectory>
+                                        </artifactItem>
+                                    </artifactItems>
+                                 </configuration>
+                             </execution>
+                         </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
             <id>sts</id>
             <build>
                 <defaultGoal>test</defaultGoal>
@@ -110,6 +148,7 @@
                                 <configuration>
                                     <executable>java</executable>
                                     <arguments>
+                                        <argument>-Djava.endorsed.dirs=${basedir}/target/endorsed</argument>
                                         <argument>-classpath</argument>
                                         <classpath />
                                         <argument>demo.wssec.sts.Server</argument>
@@ -145,6 +184,7 @@
                                 <configuration>
                                     <executable>java</executable>
                                     <arguments>
+                                        <argument>-Djava.endorsed.dirs=${basedir}/target/endorsed</argument>
                                         <argument>-classpath</argument>
                                         <classpath />
                                         <argument>demo.wssec.server.Server</argument>