thanks John: I will go through this and give it a try. If the simplest example will work, then I want to exclude things like the docs/ directory and other artifacts from the jar that is produced.
The book example might work, but most likely not. The <manifest> section was left completely out. It was probably not tried first before going to press. Lisa John Stoneham wrote: > > On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >> Does anyone have an *end-to-end* example (with files you can send or >> attach) >> that will allow me to create a single jar with all dependencies using >> maven? > > Lisa, > > I believe that Sonatype's Maven book has exactly the example you're > looking for. The key piece is to build up all your artifacts with > dependencies as usual and then use the Maven assembly plugin using the > built-in descriptor "jar-with-dependencies". Turns out your particular > use case is actually very simple. > > The example is covered from start to finish in chapter 4. Start with > http://books.sonatype.com/maven-book/reference/customizing.html#section-custom-packaged > > and work backwards until you reach the point you're at. > > Hope this helps, > > - John > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Need-*end-to-end*-example-using-the-maven-assembly-plugin-tp20692137p20696818.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]
