Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 52433 invoked from network); 20 Oct 2004 22:35:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 22:35:41 -0000 Received: (qmail 63528 invoked by uid 500); 20 Oct 2004 22:34:29 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 63475 invoked by uid 500); 20 Oct 2004 22:34:29 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 63462 invoked by uid 99); 20 Oct 2004 22:34:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of craig@cottingham.net designates 205.158.62.197 as permitted sender) Received: from [205.158.62.197] (HELO ws6-2.us4.outblaze.com) (205.158.62.197) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 20 Oct 2004 15:34:27 -0700 Received: (qmail 7262 invoked from network); 20 Oct 2004 22:34:26 -0000 Received: from unknown (HELO ?192.168.1.9?) (craig@cottingham.net@69.240.238.35) by ws6-2.us4.outblaze.com with SMTP; 20 Oct 2004 22:34:26 -0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <4176AD6B.9080509@benanderson.us> References: <4176AD6B.9080509@benanderson.us> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2EB59A14-22E8-11D9-B8E3-0030656A5352@cottingham.net> Content-Transfer-Encoding: 7bit From: Craig S. Cottingham Subject: Re: running the project out of maven.xml Date: Wed, 20 Oct 2004 17:34:19 -0500 To: "Maven Users List" X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Oct 20, 2004, at 13:24, Ben Anderson wrote: > I'd like to take advantage of the classpath which maven uses to run my > project. I've tried to solutions: > [ ... ] > 2. classpath="${basedir}/target/classes" > classpathref="maven.dependency.classpath"/> > > This makes a little more sense, but for some reason I'm getting this > output: > > [java] [ERROR] java.lang.NoClassDefFoundError: org/w3c/dom/Document Oh so close. Try adding 'fork="true"' to the ant:java tag. It's possible to make a goal that's pretty flexible. For instance, here's what I use: This requires defining "classname" on the command line, like: maven -Dclassname=net.cottingham.Test run -- Craig S. Cottingham craig@cottingham.net OpenPGP key available from: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org