You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2010/11/25 07:40:28 UTC

svn commit: r1038936 - /geronimo/tck/branches/3.0/validator-tck-runner/pom.xml

Author: gawor
Date: Thu Nov 25 06:40:28 2010
New Revision: 1038936

URL: http://svn.apache.org/viewvc?rev=1038936&view=rev
Log:
always include tck common & util classes with each test war. This will prevent 'java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy' exceptions generated by OWB

Modified:
    geronimo/tck/branches/3.0/validator-tck-runner/pom.xml

Modified: geronimo/tck/branches/3.0/validator-tck-runner/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/validator-tck-runner/pom.xml?rev=1038936&r1=1038935&r2=1038936&view=diff
==============================================================================
--- geronimo/tck/branches/3.0/validator-tck-runner/pom.xml (original)
+++ geronimo/tck/branches/3.0/validator-tck-runner/pom.xml Thu Nov 25 06:40:28 2010
@@ -97,6 +97,35 @@
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                   <execution>
+                        <id>generate-common-jar</id>
+                        <phase>generate-test-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${project.build.directory}/tck-common"/>
+                                <unjar src="${settings.localRepository}/org/hibernate/jsr303/tck/jsr303-tck/1.0.3.GA/jsr303-tck-1.0.3.GA.jar"
+                                       dest="${project.build.directory}/tck-common">
+                                    <patternset>
+                                        <include name="org/hibernate/jsr303/tck/common/**"/>
+                                        <include name="org/hibernate/jsr303/tck/util/**"/>
+                                    </patternset>
+                                </unjar>
+
+                                <mkdir dir="${project.build.directory}/dependency/lib"/>
+                                <jar destfile="${project.build.directory}/dependency/lib/tck-common.jar" 
+                                     basedir="${project.build.directory}/tck-common"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>
                     <execution>