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 1Q4ab8-0003dW-7D for garchives@archives.gentoo.org; Tue, 29 Mar 2011 15:12:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD6D31C146; Tue, 29 Mar 2011 15:11:49 +0000 (UTC) Received: from mail-pw0-f53.google.com (mail-pw0-f53.google.com [209.85.160.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 7D985E05B1 for ; Tue, 29 Mar 2011 15:11:49 +0000 (UTC) Received: by pwj7 with SMTP id 7so75011pwj.40 for ; Tue, 29 Mar 2011 08:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:content-type :content-transfer-encoding:x-mailer:subject:mime-version:date:cc; bh=jSjzqrCpYclC/l1eQ7OyBxdEAkjhBzjcv72LnggXpf4=; b=pyBvwCD5rnBCNnCKNEScvgwSJhyUD4brZXZ6/hcAya8/WlFRTRPflKg3nR+883L5ky HOzfyy3xmA6bfvg0WvqRf1jYxcF817zVotPUxoCBFfJNtZmn1/a4EFlkKWWkg9UaigdN AU6/iRYtsWaLxT3RH73ZPMQNjN9PAwgQKEt+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:x-mailer :subject:mime-version:date:cc; b=ZHJamQuyHDgpJHuY2veMRkaA+BGDfKy33l+gHhehSe58BUHkzZh528jbWqzUGZXPlU 5jdmVINYiSHv2dvgicYcqcTxh2YhwXccC/pVj/3pWQWFxDc8+1yTDoqHs1Twbwvl5JTj 7tRe9Sm79xfZUMcSirE1jnL15ZOJPXi73c2K0= Received: by 10.143.163.11 with SMTP id q11mr4551533wfo.428.1301411508794; Tue, 29 Mar 2011 08:11:48 -0700 (PDT) Received: from [111.223.163.90] ([111.223.163.90]) by mx.google.com with ESMTPS id x11sm7382082wfd.13.2011.03.29.08.11.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 08:11:46 -0700 (PDT) Message-Id: <1720E82E-2E96-4B08-BD53-EEF092200AE7@gmail.com> From: Kasun Gajasinghe To: "gentoo-soc@lists.gentoo.org" Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (7E18) Subject: Re: [gentoo-soc] [GSoC] Maven integration for Gentoo ebuilds Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org Mime-Version: 1.0 (iPhone Mail 7E18) Date: Tue, 29 Mar 2011 20:41:51 +0530 Cc: "gentoo-soc@lists.gentoo.org" X-Archives-Salt: X-Archives-Hash: a1f48df2a839c90a4cf8d5ed97792efa On 29 Mar 2011, at 09:37, Serkan Kaba wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 29-03-2011 06:47, Kasun Gajasinghe wrote: >> 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. > POM dependencies can be too restrictive sometimes, like depending on a > specific version. We should be depending on any version (or sometimes > with >=,<=) as long as the package compiles and runs fine with it. I've come across a package called JPackage which does the job of retrieving a jar from /usr/share/java and return it to use by maven. It neglects the version numbers as well. >> 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="${T}/maven-repo/" while >> Debian has REPO=/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? > We then still need to add symlinks to jars during build time in there > which is an "access violation" in sand box Ok. Then the viable option is to have to generate the maven directory structure inside a folder named ${T}/maven-repo. We can do the symlinking through that, and we won't face any access violation since the writing happens in the sandbox. Ubuntu too have proposed a similar solution. I'm away from my machine, I'll provide the links to it as well as for the JPackage soon if it you all may want to check it out! Thanks, Kasun > > - -- > Sincerely, > Serkan KABA > Gentoo Developer > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk2RWvIACgkQRh6X64ivZaLfkgCfVF99iZaa6Pa+dTlC4cjuLvZd > ILkAn34OooCvrNy6uu9yEg4bua/q7X6G > =staW > -----END PGP SIGNATURE----- >