Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 96883 invoked from network); 9 Nov 2010 15:10:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 15:10:23 -0000 Received: (qmail 36621 invoked by uid 500); 9 Nov 2010 15:10:51 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 36291 invoked by uid 500); 9 Nov 2010 15:10:48 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 36283 invoked by uid 99); 9 Nov 2010 15:10:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 15:10:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.183.49.139] (HELO production.artifact-software.com) (207.183.49.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 15:10:39 +0000 Received: from [192.168.3.177] (g25-153.citenet.net [205.151.201.153]) by production.artifact-software.com (Postfix) with ESMTP id 8051B6A79F4 for ; Tue, 9 Nov 2010 10:10:16 -0500 (EST) Message-ID: <4CD96450.2040000@artifact-software.com> Date: Tue, 09 Nov 2010 10:10:08 -0500 From: Ron Wheeler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: Maven integration with bash script References: <4CD93FBC.6030706@cs.mcgill.ca> <4CD9473E.20404@artifact-software.com> <4CD94CB6.4000507@cs.mcgill.ca> In-Reply-To: <4CD94CB6.4000507@cs.mcgill.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Start by getting it working with Eclipse and Maven. Tell Maven and Eclipse that you are trying to build a standalone application when you create the Eclipse project. It will structure your project so that it builds one with the assets in the right place to run it. Points to remember 1) Don't fight Maven. It always wins. 2) Lots of people are building whatever it is that you are building and have already solved ALL the typical problems and built these solutions into Maven and Eclipse. 3) If it doesn't work, you have done something wrong. This is the hardest one to deal with 4) Get the basics right first and customize later once you know how it should hang together. 5) When asking a question in the forum, ask in terms of what you are trying to accomplish not how. You will get much better advice if people know what you want to accomplish as a result. "How should I set up maven to build a standalone Java application(compiler)?" than "How do I make maven tell Ant about classpaths?". The members here are really great and very helpful. You will get all the support that you need to make this work well. Ron On 09/11/2010 8:29 AM, Jacob Beard wrote: > Hi Ron, > > Thanks for the reply. > > On 10-11-09 02:06 PM, Ron Wheeler wrote: >> If you are using a decent IDE (Eclipse STS for example) with Maven >> support, you should not need any of this. >> Maven and Eclipse will get everything you need onto the classpath. >> > My project is a compiler, so I feel that it's important that it be > accessible from the command line, just as it's not necessary to fire > up an Netbeans in order to use javac. > > I can think of a hacky solution that might work, which is to pass the > classpath from Maven to Ant using Maven Ant Tasks, and then allow Ant > to echo it out. But I was hoping that this might be a solved problem, > and that there might be a cleaner "maven solution" to making this work. > > I'd appreciate any advice you can offer. Thanks, > > Jake > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org