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 1Qc71U-0007yi-AC for garchives@archives.gentoo.org; Thu, 30 Jun 2011 02:30:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CED261C022; Thu, 30 Jun 2011 02:29:51 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by pigeon.gentoo.org (Postfix) with ESMTP id 741B31C022 for ; Thu, 30 Jun 2011 02:29:51 +0000 (UTC) Received: by fxd18 with SMTP id 18so1753798fxd.11 for ; Wed, 29 Jun 2011 19:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=e7aUqTYtQwCabJK232MsxMvAGnhTC9LDiu9XGAWm24U=; b=JKw2Dz9ifsTw1k4XOYR9E4Aq3i+nOqka86hztLmzaCZVum07s0w4x/howQv1DtjCTp xNLyzDryNu5dliVytNDtGwCq675IePrXYeLsnTp2LA2m2lC2JXefcB+FB8DuzxHfhVEm 4+xHnT+qYdqG4N6T0dImUc+4ZmSxnmiLvOVsQ= Received: by 10.223.96.130 with SMTP id h2mr2189408fan.142.1309400989153; Wed, 29 Jun 2011 19:29:49 -0700 (PDT) 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 Received: by 10.223.73.207 with HTTP; Wed, 29 Jun 2011 19:29:29 -0700 (PDT) In-Reply-To: References: From: Kasun Gajasinghe Date: Thu, 30 Jun 2011 07:59:29 +0530 Message-ID: Subject: Re: [gentoo-java] Re: [mvn-intg] maven-from-source : An issue when invoking mvn To: gentoo-java@lists.gentoo.org, gentoo-java@gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f162450c7ee06e7c5c1950b6d7e33b80 Message-ID: <20110630022929.vDsOPmRed7Due2DLmm9cI5hPq8nP0fnSci1sj7B_wbQ@z> J=C3=B6rg, Thanks for the suggestions. I was able to get over this issue at last. It's probably because I haven't given priority to maven-compat (which has the class org.apache.maven.cli.compat.CompatibleMain) over other (symlinked) packages. I've renamed it to 01_maven-compat.jar. I've tried the your suggestions as well, may be the CRLF case played a part here too! Right now, `mvn-2 clean` works _with_ a pre-setup m2 repo with necessary plugins! ;) There's this error pops up when trying 'clean' with an empty m2 repo. 'mvn compile' fails whether or not the needed plugins already available. I'm trying to track down this error now. It's failing either because it does not try to download needed jars or some version mismatch (which I doubt) triggering NoSuchMethodError or because of a missing component. If you have any inputs, please let me know. The generated component org.sonatype.plexus.components.sec.dispatcher.SecDispatcher is of type 'default' not 'maven'! http://pastebin.com/NMp7ULXx More comments below... On Thu, Jun 30, 2011 at 2:46 AM, J=C3=B6rg Schaible = wrote: > >> Maven is called via classworlds with the command: >> "${JAVACMD}" \ >> $MAVEN_OPTS \ >> -classpath $(java-config -p classworlds-1.1) \ >> -Dclassworlds.conf=3D/usr/share/maven-2/maven_home/bin/m2.conf \ =C2=A0#= the m2. >> -Dmaven.home=3D/usr/share/maven-2.2 \ >> -Dmaven.repo.remote=3D${HOME}/.m2/repository \ >> -Dmaven.repo.local=3D${HOME}/.m2/repository =C2=A0\ >> ${CLASSWORLDS_LAUNCHER} \ >> ${@} >> >> (The full script: >> http://overlays.gentoo.org/proj/java/browser/gsoc-maven-overlay/dev- > java/maven/files/2.2.1/bin/mvn) > > Explain __MAVENHOME__ and __MAVEN_SHARE__. JAVA_MAVEN_SYSTEM_HOME=3D"/usr/share/maven-${JAVA_MAVEN_VERSION}/maven_home= " MAVEN=3D${PN}-${SLOT} MAVEN_SHARE=3D"/usr/share/${MAVEN}" __MAVENHOME__ get replaced by JAVA_MAVEN_SYSTEM_HOME and other one respectively in src_unpack phase. See: http://overlays.gentoo.org/proj/java/browser/gsoc-maven-overlay/dev-java/ma= ven/maven-2.2.1.ebuild#L152 http://overlays.gentoo.org/proj/java/browser/gsoc-maven-overlay/eclass/java= -maven-2.eclass#L93 > > I am also wondering about: > >> -Dmaven.repo.remote=3D${HOME}/.m2/repository \ >> -Dmaven.repo.local=3D${HOME}/.m2/repository =C2=A0\ > > 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 have > 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 named > e.g. "gentoo-system". 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? User can provide the remote repo via settings.xml later on. 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. Thanks, --Kasun --=20 ~~~*******'''''''''''''*******~~~ Kasun Gajasinghe, University of Moratuwa, Sri Lanka. Blog: http://blog.kasunbg.org Twitter: http://twitter.com/kasunbg