|
142 | 142 | <aws.kinesis.client.version>1.1.0</aws.kinesis.client.version> |
143 | 143 | <commons.httpclient.version>4.2.6</commons.httpclient.version> |
144 | 144 | <commons.math3.version>3.1.1</commons.math3.version> |
145 | | - |
| 145 | + <test_classpath_file>${project.build.directory}/spark-test-classpath.txt</test_classpath_file> |
146 | 146 | <PermGen>64m</PermGen> |
147 | 147 | <MaxPermGen>512m</MaxPermGen> |
| 148 | + <scala.version>2.10.4</scala.version> |
| 149 | + <scala.binary.version>2.10</scala.binary.version> |
| 150 | + <jline.version>${scala.version}</jline.version> |
| 151 | + <jline.groupid>org.scala-lang</jline.groupid> |
148 | 152 | </properties> |
149 | 153 |
|
150 | 154 | <repositories> |
|
961 | 965 | <spark.test.home>${session.executionRootDirectory}</spark.test.home> |
962 | 966 | <spark.testing>1</spark.testing> |
963 | 967 | <spark.ui.enabled>false</spark.ui.enabled> |
| 968 | + <spark.executor.extraClassPath>${test_classpath}</spark.executor.extraClassPath> |
964 | 969 | </systemProperties> |
965 | 970 | </configuration> |
966 | 971 | <executions> |
|
1022 | 1027 | </pluginManagement> |
1023 | 1028 |
|
1024 | 1029 | <plugins> |
| 1030 | + <!-- This plugin dumps the test classpath into a file --> |
| 1031 | + <plugin> |
| 1032 | + <groupId>org.apache.maven.plugins</groupId> |
| 1033 | + <artifactId>maven-dependency-plugin</artifactId> |
| 1034 | + <version>2.9</version> |
| 1035 | + <executions> |
| 1036 | + <execution> |
| 1037 | + <phase>test-compile</phase> |
| 1038 | + <goals> |
| 1039 | + <goal>build-classpath</goal> |
| 1040 | + </goals> |
| 1041 | + <configuration> |
| 1042 | + <includeScope>test</includeScope> |
| 1043 | + <outputFile>${test_classpath_file}</outputFile> |
| 1044 | + </configuration> |
| 1045 | + </execution> |
| 1046 | + </executions> |
| 1047 | + </plugin> |
| 1048 | + |
| 1049 | + <!-- This plugin reads a file into maven property. And it lets us write groovy !! --> |
| 1050 | + <plugin> |
| 1051 | + <groupId>org.codehaus.gmaven</groupId> |
| 1052 | + <artifactId>gmaven-plugin</artifactId> |
| 1053 | + <version>1.4</version> |
| 1054 | + <executions> |
| 1055 | + <execution> |
| 1056 | + <phase>process-test-classes</phase> |
| 1057 | + <goals> |
| 1058 | + <goal>execute</goal> |
| 1059 | + </goals> |
| 1060 | + <configuration> |
| 1061 | + <source> |
| 1062 | + def file = new File(project.properties.test_classpath_file) |
| 1063 | + project.properties.test_classpath = file.getText().split().join(":") |
| 1064 | + </source> |
| 1065 | + </configuration> |
| 1066 | + </execution> |
| 1067 | + </executions> |
| 1068 | + </plugin> |
1025 | 1069 | <!-- The shade plug-in is used here to create effective pom's (see SPARK-3812). --> |
1026 | 1070 | <plugin> |
1027 | 1071 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments