aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSandy Ryza <sandy@cloudera.com>2014-11-14 14:21:57 -0800
committerPatrick Wendell <pwendell@gmail.com>2014-11-14 14:21:57 -0800
commitf5f757e4ed80759dc5668c63d5663651689f8da8 (patch)
tree148a4f9284c41d3ee8bce0a339d6c66e52aeac9a /examples
parentbbd8f5bee81d5788c356977c173dd1edc42c77a3 (diff)
downloadspark-f5f757e4ed80759dc5668c63d5663651689f8da8.tar.gz
spark-f5f757e4ed80759dc5668c63d5663651689f8da8.tar.bz2
spark-f5f757e4ed80759dc5668c63d5663651689f8da8.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
Diffstat (limited to 'examples')
-rw-r--r--examples/pom.xml65
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>