Discussion:
[jira] [Created] (MAHOUT-2020) Maven repo structure compatibility with SBT
Pat Ferrel (JIRA)
2017-10-03 20:17:00 UTC
Permalink
Pat Ferrel created MAHOUT-2020:
----------------------------------

Summary: Maven repo structure compatibility with SBT
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: Critical
Fix For: 0.13.1


The maven repo should build:
org/apache/mahout/mahout-spark-2.1/0.13.1-SNAPSHOT/mahout-spark-2.1_2.11-0.13.1-SNAPSHOT.jar

substitute Spark version for -2.1, so -1.6 etc.

The build.sbt `libraryDependencies` line then will be:
`"org.apache.mahout" %% "mahout-spark-2.1" % “0.13.1-SNAPSHOT`

This is parsed by sbt to yield the path of :
org/apache/mahout/mahout-spark-2.1/0.13.1-SNAPSHOT/mahout-spark-2.1_2.11-0.13.1-SNAPSHOT.jar

The outcome of `mvn clean install` currently is something like:
org/apache/mahout/mahout-spark/0.13.1-SNAPSHOT/mahout-spark-0.13.1-SNAPSHOT-spark_2.1.jar

This has no effect on the package structure, only artifact naming and maven repo structure.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Andrew Palumbo
2017-11-28 00:22:48 UTC
Permalink
+1



Sent from my Verizon Wireless 4G LTE smartphone


-------- Original message --------
From: "Pat Ferrel (JIRA)" <***@apache.org>
Date: 11/27/2017 9:43 AM (GMT-08:00)
To: ***@mahout.apache.org
Subject: [jira] [Resolved] (MAHOUT-2020) Maven repo structure malformed


[ https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FMAHOUT-2020%3Fpage%3Dcom.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel&data=02%7C01%7Candrew_palumbo%40msn.com%7C94cc487fe494477b4dad08d535be500d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636474013857692302&sdata=HCl349VNeIqu1OCFf%2FqHeS0Rgzs7uFqAcZ0Er2mp6Ho%3D&reserved=0 ]

Pat Ferrel resolved MAHOUT-2020.
--------------------------------
Resolution: Fixed

Trevor found a script in Spark that seems to fix this when used during a build. Marking as fixed but we need to document this for source builds.
Maven repo structure malformed
------------------------------
Key: MAHOUT-2020
URL: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FMAHOUT-2020&data=02%7C01%7Candrew_palumbo%40msn.com%7C94cc487fe494477b4dad08d535be500d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636474013857692302&sdata=bIy3j7hi1Mf%2BvPrwenJ9vTFN1Jb4LpTmCICd%2BbO7vFc%3D&reserved=0
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)

Loading...