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 1QcMGL-0002T9-Bk for garchives@archives.gentoo.org; Thu, 30 Jun 2011 18:46:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86CED1C0B3; Thu, 30 Jun 2011 18:46:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 419281C0B3 for ; Thu, 30 Jun 2011 18:46:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5CDBF1BC022 for ; Thu, 30 Jun 2011 18:46:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -6.599 X-Spam-Level: X-Spam-Status: No, score=-6.599 required=5.5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BrTa8G1DtO0l for ; Thu, 30 Jun 2011 18:46:06 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 8F2881B4057 for ; Thu, 30 Jun 2011 18:46:05 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QcMFU-0000pZ-97 for gentoo-java@gentoo.org; Thu, 30 Jun 2011 20:46:00 +0200 Received: from hsi-kbw-046-005-048-163.hsi8.kabel-badenwuerttemberg.de ([46.5.48.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 20:46:00 +0200 Received: from joerg.schaible by hsi-kbw-046-005-048-163.hsi8.kabel-badenwuerttemberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 20:46:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: gentoo-java@gentoo.org To: gentoo-java@lists.gentoo.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: [gentoo-java] Re: Re: [mvn-intg] maven-from-source : An issue when invoking mvn Followup-To: gmane.linux.gentoo.java Date: Thu, 30 Jun 2011 20:45:47 +0200 Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org Reply-To: gentoo-java@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-046-005-048-163.hsi8.kabel-badenwuerttemberg.de Mail-Copies-To: nobody User-Agent: KNode/4.4.11 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f8ab019717b56a94e4f1fa5bb6932f74 Hi, Kasun Gajasinghe wrote: just answering for the repo for now ... [snip] >> >> I am also wondering about: >> >>> -Dmaven.repo.remote=3D${HOME}/.m2/repository \ >>> -Dmaven.repo.local=3D${HOME}/.m2/repository \ >> >> Note, that the format of the meta data in a remote and a local repo >> *differs*. AFAICS you cannot have both at the same location. Why not h= ave >> one single system-wide remote repo, that is "stuffed" with the Gentoo- >> installed libraries only? Simply add that to >> /usr/share/maven-2.2/conf/settings.xml in an always active profile nam= ed >> e.g. "gentoo-system". >=20 > Yes, I think we should remove > -Dmaven.repo.remote=3D${HOME}/.m2/repository. Actually, remote repo > refers to a server which we generally via http protocal anyway, right? Any valid URL can do. Even using "file:" protocol. > User can provide the remote repo via settings.xml later on. >=20 > what do you mean by "system-wide remote repo"? Currently we have a > system wide _local_ repo at /usr/share/maven-2/maven_home/gentoo-repo. Every user will have to use an own local repo. You cannot share a local r= epo=20 between different users reliably. Additionally this is the repo the curre= nt=20 user *writes to* even if he downloads something (this is already critical= if=20 you use M3's parallel build). Therefore you will have to establish a syst= em- wide *remote* repo that is filled up with the Gentoo-built stuff. If that= =20 one is referred as remote repo in the settings.xml of the current Maven=20 installation, it is always considered independently of a user's own=20 repository declarations in his settings.xml. In the end it means that the different local repo's will always contain=20 copies. Note, that it is for a developer a quite common task to wipe the=20 local repo from time to time. If you set "maven.repo.remote", you overwrite Maven Central i.e. Maven's=20 default repo, but it will not prevent other remote lookups. If you want t= o=20 ensure that Maven is not using something else during ebuilds, you should = use=20 a special settings.xml anyway that declares the system-wide *remote* repo= as=20 mirror for everything ... - J=C3=B6rg