On Mon, Nov 10, 2008 at 9:51 PM, kunduruswaroop <[EMAIL PROTECTED]> wrote: > > > Wayne > > > 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 may use jar-with-dependencies: http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies Then, after 'package' you'll have two jars: my-jar-1.0-SNAPSHOT.jar contains your classes and my-jar-jar-with-dependecies-1.0-SNAPSHOT.jar contains your classes and classes from your dependencies. This will not be 'jar within a jar' but just a regular jar. I think that's what you're looking for. HTH, Tomek > > > Regards, > > Swaroop Kunduru. > -- > View this message in context: > http://www.nabble.com/How-to-add-a-jar-in-project-package.-tp20407563p20427615.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]
