On Jul 7, 2008, at 5:34 PM, Ken Liu wrote:
Is there any easy way to have maven generate a cmd or bat file with
the java
command line populated with the classpath from the maven dependencies?
You could check out the codehaus mojo appassembler at
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
It's listed as "pre-release", but that applies to a lot of stuff we're
using in Maven-land.
You could also use the assembly plugin to build a lib directory
containing all the project dependencies, even including the project
jar. Then you could write a script that loops over the contents of
that directory, adding the jars to CLASSPATH. There are many examples
for both UN*X and Windows out there.
Or, having created the directory with dependencies, you could use
Dawid Weiss's invoker jar at
http://www.cs.put.poznan.pl/dweiss/xml/projects/invoker/index.xml?lang=en
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]