I am installing to Maven repository our internal files using mvn install:install command. All Jars installed in such way have version name added automatically as a suffix. Since we have many batch scripts with the Jars names it is very inconvenient for us. How this auto-renaming can be switched off?
I am installing to Maven repository our internal files using mvn install:install command. All
Share
You can’t. Dependency resolution in Maven works because Maven has conventions and the naming of artifacts is one of them. So you can’t turn off the way maven
installartifacts (and you actually don’t want to).The common way to handle scripts (bat/sh) is to put them in your source tree (e.g. in
src/main/bin) and to create a distribution of your project with the assembly plugin. When building your assembly, you can rename artifacts, filter distribution files, etc. That would be the right place to do such kind of things.