Good question. I do not want to remove the version info for all lib jars, but only selected few that are provided by our own project. It's for compatibility with some of our tools for historic reason. So I was searching dependency area and indeed missed the war plugin example. I just tried the outputFileNameMapping property. Unfortunately, as I would expect, it applied generally to all lib jars, which is not what I would like to do. I was hoping dependency configuration would provide some thing that can be applied selectively.
Gang -----Original Message----- From: Manfred Moser [mailto:[email protected]] Sent: Wednesday, January 20, 2010 2:14 PM To: Maven Users List Subject: Re: Control the dependent jar name in war On Wed, 20 Jan 2010 13:12:21 -0600, Wayne Fay wrote > > I've searched but failed to find a way to control the dependent jar > > name when it is bundled in the war. Specifically, I would like to > > remove the trailing version number when the dependent jar is > > included in the web-inf/lib. Does any one know a way? > > If only there was documentation about the WAR plugin which might > explain how to achieve this goal... oh wait, there is. Where did you > search? > > http://maven.apache.org/plugins/maven-war-plugin/examples/file-name- mapping.html True. The bigger question is why you would want to remove this useful information from the file names? manfred --------------------------------------------------------------------- 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]
