maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Wheeler <>
Subject Re: Maven integration with bash script
Date Tue, 09 Nov 2010 15:10:08 GMT
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.


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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message