[ 
https://issues.apache.org/jira/browse/MAHOUT-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239737#comment-16239737
 ] 

Trevor Grant commented on MAHOUT-2020:
--------------------------------------

[~pferrel] check out https://github.com/apache/mahout/pull/331

Building that with `mvn clean install -DskipTests` (This purposefully builds 
spark1.6,spark2.0, and spark 2.1) I am able to make this silly empty sbt turn 
over.


Note, sbt doesn't seem to be intelligent enough to check the local maven repo 
out of the box- and so one must add it. 

```

name := "mahout-build-with-sbt"

version := "1.0"

scalaVersion := "2.10.6"

val mahoutVersion = "0.13.1-SNAPSHOT"
val sparkVersion = "1.6.3"
val sparkCompatVersion = "1.6"
val scalaCompatVersion = "2.10"

resolvers += "Local Maven Repository" at "file://"+ 
Path.userHome.absolutePath+"/.m2/repository"

libraryDependencies ++= Seq(

    "org.apache.mahout" % "mahout-math"         % mahoutVersion,
    "org.apache.mahout" %% s"mahout-math-scala" % mahoutVersion,
    "org.apache.mahout" %% s"mahout-spark${sparkCompatVersion}"      % 
mahoutVersion ,
    "org.apache.spark"  %% s"spark-core"        % sparkVersion
)
```


> Maven repo structure malformed
> ------------------------------
>
>                 Key: MAHOUT-2020
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-2020
>             Project: Mahout
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.13.1
>         Environment: Creating a project from maven built Mahout using sbt. 
> Made critical since it seems to block using Mahout with sbt. At least I have 
> found no way to do it.
>            Reporter: Pat Ferrel
>            Assignee: Trevor Grant
>            Priority: Blocker
>             Fix For: 0.13.1
>
>
> The maven repo is built with scala 2.10 always in the parent pom's 
> {scala.compat.version} even when you only ask for Scala 2.11, this leads to 
> the 2.11 jars never being found. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to