> I am using Sun JVM from JDK1.5. I wanted a structure in the project jar file
> it should include log4j jar file so that I can port this entire jar to
> different machine where there is no Maven and and run the class.

You have two options:
1. Create an "uberjar" using the minijar plugin which contains all of
your class files as well as the class files of all of your
dependencies. Thus, the log4j class files etc will be mixed in with
your project files in a single jar. [1]
2. Create a zip file using the assembly plugin which contains your jar
file plus the dependency jar files, perhaps in a lib/ folder. You
might also include a shell script which sets up the java -cp ...
command line for your users so they can simply type run.sh (or
run.bat) and everything will run. [2]

Maven can help in either situation.

[1] http://mojo.codehaus.org/minijar-maven-plugin/usage.html
[2] http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to