Just curious, but I'm interested in why you want to do this. It drives me nuts when I get a product such as Jboss and I can't figure out what version it is using just by looking at the file name. OTOH, I'd be just as happy to run a command line program that could accurately tell me the version from the info in the jar. I guess I could write one, assuming it was including in the manifest.

Ralph

Pant, Dheeraj wrote:
Hi,

            Using Maven generates all the artifacts (jars/wars/ears)
with a unique filename <artifactid>-<version>.<type>. How do we remove
the version number from the filenames? I need a generic way to do this,
because we have many sub-modules and would like to have a common
solution that can be reused for every module.

I tried the following things:

1. For ear, Maven allows to rename the modules.

2. Using an ant task, rename each jar/war/ear after it gets packaged.

However, still classpath within the MANIFEST files (generated using
Maven) refers to unique filenames including their version numbers. We
don't want to hardcode our manifest files. I tried specifying project
specific modules as system dependency - did not work.

Is there a way out?

Thanks,

Dheeraj.



-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to