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/descriptor-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]
