Maven: removing a formatted file from the generated assembly

I have a Maven2 project where I use the build plugin. Everything would be fine if the name of the created assembly file did not end with a format extension (for example, .zip). I specified the fileName parameter in the plugin configuration and set appendAssemblyId to false. I have already spent several hours on this problem ... Any idea?

+3
source share
1 answer

My answer doesn't answer a bit - don't delete the format extension. If you use a specific <format>assembly descriptor to create an artifact (zip, tar.gz, etc.), there is no reason to remove the extension from the file. If I am a user of your software and download this binary, I don’t want to guess what the type of packaging is, I have to say just by looking at the file name.

FWIW, setting appendAssemblyId to false, means that <id>your assembly descriptor will not be included in your file name.

, , , , , , ( , maven do), antrun plugin, maven script, maven.

0

Source: https://habr.com/ru/post/1763775/


All Articles