Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2A187475 for ; Sun, 24 Jul 2011 20:03:32 +0000 (UTC) Received: (qmail 35783 invoked by uid 500); 24 Jul 2011 20:03:32 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 35618 invoked by uid 500); 24 Jul 2011 20:03:31 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 35610 invoked by uid 99); 24 Jul 2011 20:03:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jul 2011 20:03:31 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jul 2011 20:03:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 83FC883BEA for ; Sun, 24 Jul 2011 20:03:09 +0000 (UTC) Date: Sun, 24 Jul 2011 20:03:09 +0000 (UTC) From: "Sean Owen (JIRA)" To: dev@mahout.apache.org Message-ID: <885135784.2361.1311537789537.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <248117377.1850.1311493149576.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAHOUT-768) Duplicated DoubleFunction in mahout and mahout-collections (mahout.math package). MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070239#comment-13070239 ] Sean Owen commented on MAHOUT-768: ---------------------------------- It would just mean you depend on this math-collections module; in fact, according to this issue you already do. You don't have to use the math bits. It doesn't bring much else in for dependencies. Doesn't this suggestion just get back to the original problem of a circular dependency? > Duplicated DoubleFunction in mahout and mahout-collections (mahout.math package). > --------------------------------------------------------------------------------- > > Key: MAHOUT-768 > URL: https://issues.apache.org/jira/browse/MAHOUT-768 > Project: Mahout > Issue Type: Improvement > Components: collections, Math > Affects Versions: 0.5, collections-1.0 > Reporter: Dawid Weiss > Priority: Minor > Fix For: 0.6 > > > DoubleFunction is duplicated in Mahout Math and Collections. There are also other things inside m.math.* package that are kept there to avoid circular dependencies... Simply removing DoubleFunction from collections is not going to work because it is needed for compilation (again, circular dependency between collections and math). I see two solutions: > 1) extract the common definitions inside math.function.* into a separate module. This is a clean solution, but obviously scatters the code even further. > 2) create a compilation-time, optional dependency on mahout 0.5 in collections, remove the entire mahout.math.* subpackage from collections and live with this. I don't know how Maven handles circular dependencies of this type: > collections [trunk] -> [optional, required at build time] mahout.math 0.5 > mahout.math [trunk] -> collections [trunk] > it seems tricky and error-prone, but should also work. > Looking for other ideas of cleaning this mess up, of course. > Dawid -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira