diff options
author | Sandy Ryza <sandy@cloudera.com> | 2014-11-14 14:21:57 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-11-14 14:22:13 -0800 |
commit | d90ddf12b6bea2162e982e800c96d2c94f66b347 (patch) | |
tree | e89c6462d663ce83625df68115e7596294bddd70 /examples/pom.xml | |
parent | 4bdeeb7d25453b9b50c7dc23a5c7f588754f0e52 (diff) | |
download | spark-d90ddf12b6bea2162e982e800c96d2c94f66b347.tar.gz spark-d90ddf12b6bea2162e982e800c96d2c94f66b347.tar.bz2 spark-d90ddf12b6bea2162e982e800c96d2c94f66b347.zip |
SPARK-4375. no longer require -Pscala-2.10
It seems like the winds might have moved away from this approach, but wanted to post the PR anyway because I got it working and to show what it would look like.
Author: Sandy Ryza <sandy@cloudera.com>
Closes #3239 from sryza/sandy-spark-4375 and squashes the following commits:
0ffbe95 [Sandy Ryza] Enable -Dscala-2.11 in sbt
cd42d94 [Sandy Ryza] Update doc
f6644c3 [Sandy Ryza] SPARK-4375 take 2
(cherry picked from commit f5f757e4ed80759dc5668c63d5663651689f8da8)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Diffstat (limited to 'examples/pom.xml')
-rw-r--r-- | examples/pom.xml | 65 |
1 files changed, 3 insertions, 62 deletions
diff --git a/examples/pom.xml b/examples/pom.xml index 2ec5728154..2752ce3ca9 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -389,11 +389,11 @@ </properties> </profile> <profile> - <!-- We add source directories specific to Scala 2.10 and 2.11 since some examples - work only in one and not the other --> + <!-- We add a source directory specific to Scala 2.10 since Kafka and Algebird + only work with it --> <id>scala-2.10</id> <activation> - <activeByDefault>true</activeByDefault> + <property><name>!scala-2.11</name></property> </activation> <dependencies> <dependency> @@ -427,65 +427,6 @@ </sources> </configuration> </execution> - <execution> - <id>add-scala-test-sources</id> - <phase>generate-test-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>src/test/scala</source> - <source>scala-2.10/src/test/scala</source> - <source>scala-2.10/src/test/java</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>scala-2.11</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <dependencies> - <!-- Streaming Kafka and zeromq modules are disabled for now. --> - </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-scala-sources</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>src/main/scala</source> - <source>scala-2.11/src/main/scala</source> - </sources> - </configuration> - </execution> - <execution> - <id>add-scala-test-sources</id> - <phase>generate-test-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>src/test/scala</source> - <source>scala-2.11/src/test/scala</source> - </sources> - </configuration> - </execution> </executions> </plugin> </plugins> |