GitHub user ueshin opened a pull request:
https://github.com/apache/spark/pull/3342
[SPARK-4429][BUILD] Build for Scala 2.11 using sbt fails.
I tried to build for Scala 2.11 using sbt with the following command:
```
$ sbt/sbt -Dscala-2.11 assembly
```
but it ends with the following error messages:
```
[error] (streaming-kafka/*:update) sbt.ResolveException: unresolved
dependency: org.apache.kafka#kafka_2.11;0.8.0: not found
[error] (catalyst/*:update) sbt.ResolveException: unresolved dependency:
org.scalamacros#quasiquotes_2.11;2.0.1: not found
```
The reason is:
If system property `-Dscala-2.11` (without value) was set,
`SparkBuild.scala` adds `scala-2.11` profile, but also `sbt-pom-reader`
activates `scala-2.10` profile instead of `scala-2.11` profile because the
activator `PropertyProfileActivator` used by `sbt-pom-reader` internally checks
if the property value is empty or not.
The value is set to non-empty value, then no need to add profiles in
`SparkBuild.scala` because `sbt-pom-reader` can handle as expected.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ueshin/apache-spark issues/SPARK-4429
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3342.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3342
----
commit ce98d0f25bd7112fa510bf091e6516ec8c704edb
Author: Takuya UESHIN <[email protected]>
Date: 2014-11-17T15:24:21Z
Set non-empty value to system property "scala-2.11" if the property exists
instead of adding profile.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]