From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q4Pue-0006sn-9v for garchives@archives.gentoo.org; Tue, 29 Mar 2011 03:48:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 937781C065; Tue, 29 Mar 2011 03:47:27 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id DF4C71C065; Tue, 29 Mar 2011 03:47:26 +0000 (UTC) Received: by wwj40 with SMTP id 40so4322607wwj.10 for ; Mon, 28 Mar 2011 20:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8CLSGfsqMW82gWAbVYLq1rNCs0tw8hXU8a/aHTfuhOM=; b=wWb6qNO124iJyTAfRRkBEoY8b90O8oPIlL03oZNUXbdwCAw398tHX/fyzZmNWT9jPF wVCeykkmouwYSd/ovVS6V1hDzQPJzIR50VkiuyonO7vochKDhUjwIr8lY3bf2CUKB74E US47749DWcj9UtmrT6nCTYuK5X/ayy74lQrA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Ytq0secK6iViX38tVqTMq+C8QM9lnInKrotlmbs6b0A3SSr2fU8Cv0R7psAA5kHx3K NzI6IZZhiWW2oVUH+S64GzWW7NaRkiulIqY8Dw4AUB+lgWaqTkT5aYEwMBUVu/KQEBGj RCWr7HLLMIan3CopS32hHckaYk/heExsFb64s= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.254.6 with SMTP id g6mr4587183wes.12.1301370446059; Mon, 28 Mar 2011 20:47:26 -0700 (PDT) Received: by 10.216.36.141 with HTTP; Mon, 28 Mar 2011 20:47:26 -0700 (PDT) In-Reply-To: <4D8EF564.8020002@gentoo.org> References: <1301171717.31104.240.camel@big_daddy.dol-sen.ca> <4D8E528F.6020009@gentoo.org> <4D8EF564.8020002@gentoo.org> Date: Tue, 29 Mar 2011 09:17:26 +0530 Message-ID: Subject: [gentoo-java] Re: [gentoo-soc] [GSoC] Maven integration for Gentoo ebuilds From: Kasun Gajasinghe To: gentoo-soc@lists.gentoo.org, gentoo-java@lists.gentoo.org Cc: =?UTF-8?Q?Petteri_R=C3=A4ty?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d6badd36d57927858e11d349f1733a60 Hi all, On Sun, Mar 27, 2011 at 1:59 PM, Petteri R=C3=A4ty = wrote: > On 03/27/2011 08:09 AM, Kasun Gajasinghe wrote: > >> >> These days I'm trying to figure out and list the requirements for the >> project. The idea page only contain a brief description. I'd very much >> appreciate if anyone can give some further information regarding this >> idea. I'm little depressed with lesser support because Google Summer >> of Code is time-constrained which means I have to do a good initial >> research and submit a proposal in a 1 1/2 weeks time. I guess it's >> probably because of weekends? >> > > As much as GSoC is time-constrained so are our personal lives. Some > delays come with the territory of volunteer work. I apologize for asking that. It won't happen again. For the basic goal of > the project we would like to be able to natively use Maven in Java > packages in the main tree. Currently we for example use the ant:ant > target to generate build.xml and then sanitize that. As we would like > these ebuilds to be dependencies for others an ebuild generator like > proposed by Brian doesn't cut it alone. A generator could of course be > useful in the process of generating ebuilds that are good enough to be > committed to Portage. I think both Fedora and Debian have already been > able to accomplish this so I would do some research into their > solutions. Here's some quick Google results to get you started: > > http://wiki.debian.org/Java/MavenBuilder > http://fedoraproject.org/wiki/Packaging/Java#maven2 > > If you want to have an online discussion or ask any questions you might > have interactively you can find the Java developers at > #gentoo-java@freenode. Please note that depending on how time zones > match we might not always be around. Thanks for the pointers again. After the discussion at the IRC, I've been going through those recommended references. I think I have a fairly good idea about the requirements now. I have few further questions. I'd like to know how the dependencies will be handled by maven based ebuilds. Can you let me know the difference between dependencies specified in Maven's POM file, and ebuild's dependencies? Are both should be same? Since, Maven's POM contains the unique artifacts IDs (with the combination of groupId, artifactId, version) which points to a _binary_ jar, how should the developers who write _ebuilds_ specify it? I got to know that dependencies are also ebuilds under gentoo i.e. no binaries. I've been going through the Ralph's (nick: sera ) suggested eclass [1]. It turned out to be very useful. (sera, I got your name from [1], hope it's correct! :) ). Because maven offline building is the biggest issue Gentoo is currently facing, As Petteri suggested, I've been going through to see how other distributions handle this. I see that both in sera's eclass and in Debian's MavenRepoSpec [2], that they specify a variable which points to a maven local-repository location. Ralph's eclass specified MAVEN_REPO_DIR=3D"${T}/maven-repo/" while Debian has REPO=3D/usr/share/maven-repo. Since the file-system will be read-only for ebuilds, and ebuilds should be built offline, what's the purpose of this? Further, please let me know the other issues that needs to be addressed that you have in mind. It turned out that the project is challenging than I thought before, and is getting exciting now! [1] http://paste.pocoo.org/show/360442/ [2] http://wiki.debian.org/Java/MavenRepoSpec#Problems_with_upstream.27s_re= pository_.28central.29 Thanks for the help. --Kasun PS: Sorry for cross-posting this to gentoo-java and gentoo-soc. Thought to do it for _this_ period of time since Donnie has agreed that it's important to make the interactions with the community visible to all the mentors. I hope it's OK! --=20 ~~~*******'''''''''''''*******~~~ Kasun Gajasinghe, University of Moratuwa, Sri Lanka. Blog: http://kasunbg.blogspot.com Twitter: http://twitter.com/kasunbg