Kaare Nilsen
Tue, 13 Feb 2007 07:46:20 -0800
On 13/02/07, Ute Platzer <[EMAIL PROTECTED]> wrote:
Hi, I have a java program which I used to build with ant. Now I switched to maven because of the easier handling of jar file dpenedencies. Unfortunately now these jar files are no longer "there", they're somewhere in the repository but not inside my project directory and it's not trivial to find and add them to the classpath when I want to run my program. Is there a simple solution, how do I set the classpath in the shell to run the program?
There are a least two good solutions (and most probably even more) : 1) use the exec-maven-plugin and use the java goal which will run your app in the maven vm, and is very useful during development (http://mojo.codehaus.org/exec-maven-plugin) 2) a somewhat better solution is to use the appassembler plugin which generates unix and windows scripts for you with all your classpaths and more (http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/) Or how do I make maven copy the jar files from the repository to
somewhere I can use them?
the appassembler i mentioned above will do this for you, copying them to your target directory for easy packaging with the assembler plugin later
Thanks for your help, and best regards, ute --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]