Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 49565 invoked from network); 10 May 2010 07:28:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 07:28:42 -0000 Received: (qmail 60590 invoked by uid 500); 10 May 2010 07:28:41 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 60359 invoked by uid 500); 10 May 2010 07:28:41 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 60351 invoked by uid 99); 10 May 2010 07:28:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 07:28:40 +0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URIBL_GREY X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.171] (HELO mail-px0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 07:28:34 +0000 Received: by pxi6 with SMTP id 6so1378963pxi.30 for ; Mon, 10 May 2010 00:28:12 -0700 (PDT) Received: by 10.115.117.38 with SMTP id u38mr2792409wam.168.1273476491679; Mon, 10 May 2010 00:28:11 -0700 (PDT) Received: from [10.0.0.10] (CPE-124-184-4-53.lns10.cht.bigpond.net.au [124.184.4.53]) by mx.google.com with ESMTPS id c22sm24300742wam.18.2010.05.10.00.28.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 May 2010 00:28:10 -0700 (PDT) Sender: Brett Porter Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: Classworlds 1.1 source code? From: Brett Porter In-Reply-To: Date: Mon, 10 May 2010 17:28:04 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1273436498.3518.51.camel@odin> To: "Maven Developers List" X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org Though if your only intent is to step into the Maven code / plugin code, = you might instead try using "mvnDebug" and connecting remotely. - Brett On 10/05/2010, at 4:57 PM, Olivier Lamy wrote: > Hi, >=20 > http://svn.codehaus.org/classworlds/tags/CLASSWORLDS_1_1/ >=20 >=20 >=20 > 2010/5/9 Jemos Infra : >>=20 >> Hi, I'm trying to debug Maven 2 from Eclipse. Since Maven 2 depends = on >> classworlds-1.1.jar (under $M2_HOME/boot), any changes to get the = source >> code? A quick Google provides sources for 1.4 but not for 1.1. Any >> jar/zip/svn repository for version 1.1? Also I wanted to ask your >> opinion on how I am "launching the Launcher". This is the code which >> triggers the whole process: >>=20 >> package foo; >>=20 >> import org.codehaus.classworlds.Launcher; >>=20 >> public class MavenDebugger { >>=20 >> public static void main(String[] args) throws Exception { >> System.setProperty("classworlds.conf", >> = "/home/mtedone/development/apache-maven-2.2.1/bin/m2.conf"); >> System.setProperty("maven.home", >> = "/home/mtedone/development/apache-maven-2.2.1"); >>=20 >> Launcher.main(new String[] { "compile" }); >>=20 >> } >>=20 >> } >>=20 >> Basically, debugging what the mvn command does on my machine I get = the >> following command: >>=20 >> /usr/lib/jvm/java-6-sun/bin/java >> -classpath = /home/mtedone/development/apache-maven-2.2.1/boot/classworlds-*.jar = -Dclassworlds.conf=3D/home/mtedone/development/apache-maven-2.2.1/bin/m2.c= onf -Dmaven.home=3D/home/mtedone/development/apache-maven-2.2.1 = org.codehaus.classworlds.Launcher "compile" >>=20 >> Which I'm trying to simulate in the MavenDebugger. I'd like to follow >> what this class does in order to execute a mvn compile from within >> Eclipse so that I can debug/understand the whole process. Do you have >> any better entry point or way to trigger Maven from a program rather >> than from the command line? >>=20 >> Thanks >>=20 >> M. >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >> For additional commands, e-mail: dev-help@maven.apache.org >>=20 >>=20 >=20 >=20 >=20 > --=20 > Olivier > http://twitter.com/olamy > http://fr.linkedin.com/in/olamy > http://www.viadeo.com/fr/profile/olivier.lamy7 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org >=20 -- Brett Porter brett@apache.org http://brettporter.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org