Hi, Thanks for the answer, but creating the jar with dependencies is not the problem. It is in the next step where I need to create the zip file where I can't use wild cards to point to my newly created jar file.
I don't use any classifiers. Regards Gunnar > -----Ursprungligt meddelande----- > Från: Graham Leggett [mailto:[EMAIL PROTECTED] > Skickat: den 8 oktober 2007 15:36 > Till: Maven Users List > Kopia: [email protected] > Ämne: Re: Assembly plugin, help > > On Mon, October 8, 2007 3:26 pm, [EMAIL PROTECTED] wrote: > > > I'm using the assembly plugin and have a problem. > > > > I'm using it in 2 steps, first I create a jar file with > dependencies. > > This works fine. > > > > In the next step I want to zip the jar together with files from a > > property directory. > > This works fine if I put in the full filename including > version in the > > assembly descriptor. > > But I don't want to be dependent on a specific version. > > > > So what can I do? > > Use the default assembly for jar-with-dependencies as described here: > > http://maven.apache.org/plugins/maven-assembly-plugin/descript > or-refs.html#jar-with-dependencies > > The dependencyset used is "any dependency resolved by your > pom". You problem is then reduced to making sure your pom > file for the assembly depends correctly on the right version > of your artifact. > > The way we make sure our assembly always corresponds with the > original artifact is to place the original artifact and the > assembly into a multi-module build, and then use > ${pom.version} everywhere we need the version. All the > modules in the multi-module build get released together. > > One caveat: the assembly plugin doesn't like to mix > multi-module builds and classifiers together, if you don't > use classifiers it should "just work". > > Regards, > Graham > -- > > > > --------------------------------------------------------------------- > 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]
