Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 78284 invoked from network); 11 Mar 2011 05:58:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 05:58:06 -0000 Received: (qmail 58502 invoked by uid 500); 11 Mar 2011 05:58:05 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 58406 invoked by uid 500); 11 Mar 2011 05:58:05 -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 58398 invoked by uid 99); 11 Mar 2011 05:58:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 05:58:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of danrollo@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 05:57:58 +0000 Received: by qyj19 with SMTP id 19so4980989qyj.9 for ; Thu, 10 Mar 2011 21:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=mS9xSBzTOyLuf7wzgyFLXb+/U4nwjh0l+PlBqKRzk/A=; b=WemDLef6bYT6uPyiFcvY7v2nYrZhz4wc+TCAia+y+HKRrsHF9u2lex9BP6qkH/47y0 8pi+in60qRuPSXwGstGyMbI1IBRnyPPKd5roMEaHb9pm6eC5E1lkP7crRSHywbXBie0Z sqE8RualOwRN+/OJ4N+GaCerSp2wQ8Uu5oikU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=mhx36Y7aMTz+Lp7o2C7ZuC45W3d94if5iyvt4W7IYGsYAj9FnXhL7J2ac5NnCovWN4 iDYHTCzcckwFI7y8jvGpZhiqy7qPOZRa3P1cs/wKCG1aDnZTZD07eSZGnEVD+9yuDtyX XuH0j5GcBPHl1W8KF/HChI1+TbDjy7skSRu1Y= Received: by 10.229.3.3 with SMTP id 3mr6819301qcl.245.1299823057178; Thu, 10 Mar 2011 21:57:37 -0800 (PST) Received: from [10.6.18.122] (pool-173-61-102-130.cmdnnj.fios.verizon.net [173.61.102.130]) by mx.google.com with ESMTPS id l17sm2957467qck.44.2011.03.10.21.57.35 (version=SSLv3 cipher=OTHER); Thu, 10 Mar 2011 21:57:35 -0800 (PST) Message-ID: <4D79B9D6.9080607@gmail.com> Date: Fri, 11 Mar 2011 00:57:42 -0500 From: Dan Rollo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: Maven Developers List Subject: Re: Maven Embedder 2.0.4 replacement; Where to start? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks for these links Benjamin. I'm working on converting the old 2.0.4 embedder code, and I managed to get things to compile by reading the imports/code in the m2eclipse link you sent, adding jars to my classpath and tweaking calls, wash, rinse, repeat. So far I have the following jars on the classpath: maven-artifact-3.0.3.jar maven-compat-3.0.3.jar maven-core-3.0.3.jar maven-embedder-3.0.3.jar maven-model-3.0.3.jar maven-model-builder-3.0.3.jar Please holler if you see any I should not need. Same goes for ones I am missing. Of course when I run the code, no surprise, it breaks. I'm pretty sure required plexus/bootstrapping classes (and/or aether equivalents) are missing. Could you point me to how m2eclipse handles this? Is it as simple as including a couple plexus jars? Which ones, and/or can you point me to the canonical/minimal example? Thanks again, Dan Subject: Re: Maven Embedder 2.0.4 replacement; Where to start? From: Benjamin Bentmann Date: Thu, 24 Feb 2011 21:26:19 +0100 To: Maven Developers List Dan Rollo wrote: > Can someone point me to a good starting point to learn about how to embed > maven 3.x? > [...] > I'm looking for a "start reading the source in file xxx" to get started > with. http://svn.apache.org/repos/asf/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java Benjamin --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org